[PATCH] ceph/ceph_common: Remove unnecessary ‘0’ values from ret

Subsystems: ceph common code (libceph), the rest

STALE1137d

2 messages, 2 authors, 2023-09-01 · open the first message on its own page

[PATCH] ceph/ceph_common: Remove unnecessary ‘0’ values from ret

From: Li kunyu <hidden>
Date: 2023-09-01 02:19:12

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

Signed-off-by: Li kunyu <redacted>
---
 net/ceph/ceph_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c
index 4c6441536d55..bf8dc1c1149c 100644
--- a/net/ceph/ceph_common.c
+++ b/net/ceph/ceph_common.c
@@ -865,7 +865,7 @@ EXPORT_SYMBOL(ceph_wait_for_latest_osdmap);
 
 static int __init init_ceph_lib(void)
 {
-	int ret = 0;
+	int ret;
 
 	ceph_debugfs_init();
 
-- 
2.18.2

Re: [PATCH] ceph/ceph_common: Remove unnecessary ‘0’ values from ret

From: Simon Horman <horms@kernel.org>
Date: 2023-09-01 13:51:37

On Sun, Sep 03, 2023 at 02:50:22AM +0800, Li kunyu wrote:
ret is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li kunyu <redacted>
## Form letter - net-next-closed

The merge window for v6.6 has begun and therefore net-next is closed
for new drivers, features, code refactoring and optimizations.
We are currently accepting bug fixes only.

Please repost when net-next reopens after Sept 11th.

RFC patches sent for review only are obviously welcome at any time.

See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
--
pw-bot: defer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help