Skip to contentSkip to conversation

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

PATCH In review Li kunyu 2 participants 2 messages Sep 1, 2023

Subsystems (3)
lore
Share & tools
lore

Li kunyu

author
#0 lore raw

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

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

---
 net/ceph/ceph_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ceph/ceph_common.c +1 -1
index 4c6441536d55..bf8dc1c1149c 100644
@@ -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();
 
Signature · 1 line
2.18.2
reviewer
#1 lore raw
Quoted 3 lines · Li kunyu

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

## 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