ceph-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] ceph/ceph_common: Remove unnecessary ‘0’ values from ret
  2023-09-02 18:50 [PATCH] ceph/ceph_common: Remove unnecessary ‘0’ values from ret Li kunyu
@ 2023-09-01 13:51 ` Simon Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2023-09-01 13:51 UTC (permalink / raw)
  To: Li kunyu
  Cc: idryomov, xiubli, jlayton, davem, edumazet, kuba, pabeni,
	ceph-devel, netdev, linux-kernel

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 <kunyu@nfschina.com>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] ceph/ceph_common: Remove unnecessary ‘0’ values from ret
@ 2023-09-02 18:50 Li kunyu
  2023-09-01 13:51 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Li kunyu @ 2023-09-02 18:50 UTC (permalink / raw)
  To: idryomov, xiubli, jlayton, davem, edumazet, kuba, pabeni
  Cc: ceph-devel, netdev, linux-kernel, Li kunyu

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

Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-01 13:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-02 18:50 [PATCH] ceph/ceph_common: Remove unnecessary ‘0’ values from ret Li kunyu
2023-09-01 13:51 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).