aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi kunyu <[email protected]>2023-11-13 09:52:29 +0800
committerMichael Ellerman <[email protected]>2023-11-27 22:01:14 +1100
commit29685ea5754f04c84ad443fd7c6869c68f636c26 (patch)
tree6b9915bf9bafcd8fa9fc19e83ab25611c3715866
parent220f3ced8e42b1efe9c6b84778fb0c77c0c56611 (diff)
misc: ocxl: main: Remove unnecessary ‘0’ values from rc
rc is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu <[email protected]> Acked-by: Andrew Donnellan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
-rw-r--r--drivers/misc/ocxl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ocxl/main.c b/drivers/misc/ocxl/main.c
index ef73cf35dda2..658974143c3c 100644
--- a/drivers/misc/ocxl/main.c
+++ b/drivers/misc/ocxl/main.c
@@ -7,7 +7,7 @@
static int __init init_ocxl(void)
{
- int rc = 0;
+ int rc;
if (!tlbie_capable)
return -EINVAL;