summaryrefslogtreecommitdiff
path: root/drivers/misc/ocxl
diff options
context:
space:
mode:
authorLi kunyu <kunyu@nfschina.com>2023-11-13 04:52:29 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2023-11-27 14:01:14 +0300
commit29685ea5754f04c84ad443fd7c6869c68f636c26 (patch)
tree6b9915bf9bafcd8fa9fc19e83ab25611c3715866 /drivers/misc/ocxl
parent220f3ced8e42b1efe9c6b84778fb0c77c0c56611 (diff)
downloadlinux-29685ea5754f04c84ad443fd7c6869c68f636c26.tar.xz
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 <kunyu@nfschina.com> Acked-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231113015229.12074-1-kunyu@nfschina.com
Diffstat (limited to 'drivers/misc/ocxl')
-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;