misc: ocxl: main: Remove unnecessary ‘0’ values from rc
authorLi kunyu <kunyu@nfschina.com>
Mon, 13 Nov 2023 01:52:29 +0000 (09:52 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Nov 2023 11:01:14 +0000 (22:01 +1100)
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
drivers/misc/ocxl/main.c

index ef73cf35dda2b3d69f1215c90845af3489cd9be8..658974143c3cc0482bd7a1ff72e094499fecb396 100644 (file)
@@ -7,7 +7,7 @@
 
 static int __init init_ocxl(void)
 {
-       int rc = 0;
+       int rc;
 
        if (!tlbie_capable)
                return -EINVAL;