misc: ocxl: main: Remove unnecessary ‘0’ values from rc
Subsystems (2)
PATCH 1/1 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]>
--- drivers/misc/ocxl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ocxl/main.c +1 -1
@@ -7,7 +7,7 @@static int __init init_ocxl (void ) { -int rc =0 ; +int rc;if (!tlbie_capable)return -EINVAL ;
Signature · 1 line
2.18.2
Quoted 4 lines · Li kunyu
rc is assigned first, so it does not need to initialize the assignment.
Signed-off-by Li kunyu <[email protected]>
I don't have strong feelings about whether to get rid of unnecessary initialisations, but most of the code doesn't do it, so for consistency:
Acked-by Andrew Donnellan <[email protected]>
Quoted 17 lines
---
drivers/misc/ocxl/main.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/misc/ocxl/main.c +0
-0@@ -7,7 +7,7 @@
static int__initinit_ocxl(void)
{drivers/misc/ocxl/main.c +1
-1-int rc =0 ; +int rc;
if (!tlbie_capable)
return-EINVAL;
Signature · 2 lines
Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited
Michael Ellerman
AppliedQuoted 3 lines · Li kunyu
rc is assigned first, so it does not need to initialize the assignment.
Applied to powerpc/next.
[1/1] misc: ocxl: main: Remove unnecessary ‘0’ values from rc
https://git.kernel.org/powerpc/c/29685ea5754f04c84ad443fd7c6869c68f636c26
cheers