Thread (3 messages) flat view 3 messages, 3 authors, 2023-12-07
STALE970d LANDED

Landed in mainline as bc1183a63057 on 2023-11-27.

[PATCH] misc: ocxl: main: Remove unnecessary ‘0’ values from rc

From: Li kunyu <hidden>
Date: 2023-11-13 01:52:39
Also in: lkml
Subsystem: char and misc drivers, ocxl (open coherent accelerator processor interface opencapi) driver, the rest · Maintainers: Arnd Bergmann, Greg Kroah-Hartman, Mahesh J Salgaonkar, Linus Torvalds

rc is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li kunyu <redacted>
---
 drivers/misc/ocxl/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/ocxl/main.c b/drivers/misc/ocxl/main.c
index ef73cf35dda2b..658974143c3cc 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;
-- 
2.18.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help