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@xxxxxxxxxx> 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@xxxxxxxxxx Signed-off-by: luo penghao <luo.penghao@xxxxxxxxxx> Reported-by: Zeal Robot <zealci@xxxxxxxxxx> Acked-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxxx are sysctl-remove-redundant-ret-assignment.patch