mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + sysctl-remove-redundant-ret-assignment.patch added to -mm tree
@ 2022-01-12 22:42 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2022-01-12 22:42 UTC (permalink / raw)
  To: luo.penghao, mcgrof, mm-commits, zealci


The patch titled
     Subject: sysctl: Remove redundant ret assignment
has been added to the -mm tree.  Its filename is
     sysctl-remove-redundant-ret-assignment.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/sysctl-remove-redundant-ret-assignment.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/sysctl-remove-redundant-ret-assignment.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: luo penghao <luo.penghao@zte.com.cn>
Subject: sysctl: Remove redundant ret assignment

Subsequent if judgments will assign new values to ret, so the statement
here should be deleted

The clang_analyzer complains as follows:

fs/proc/proc_sysctl.c:

Value stored to 'ret' is never read

Link: https://lkml.kernel.org/r/20211230063622.586360-1-luo.penghao@zte.com.cn
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/proc/proc_sysctl.c |    1 -
 1 file changed, 1 deletion(-)

--- a/fs/proc/proc_sysctl.c~sysctl-remove-redundant-ret-assignment
+++ a/fs/proc/proc_sysctl.c
@@ -1053,7 +1053,6 @@ static int sysctl_follow_link(struct ctl
 	struct ctl_dir *dir;
 	int ret;
 
-	ret = 0;
 	spin_lock(&sysctl_lock);
 	root = (*pentry)->data;
 	set = lookup_header_set(root);
_

Patches currently in -mm which might be from luo.penghao@zte.com.cn are

sysctl-remove-redundant-ret-assignment.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-12 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 22:42 + sysctl-remove-redundant-ret-assignment.patch added to -mm tree akpm

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).