]> git.baikalelectronics.ru Git - kernel.git/commit
sysctl: remove redundant ret assignment
authorluo penghao <luo.penghao@zte.com.cn>
Thu, 20 Jan 2022 02:08:09 +0000 (18:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Jan 2022 06:52:52 +0000 (08:52 +0200)
commit64bb93f5c9f87fdadd07ff594fb0739c0398ed8f
tree622cb507cb5653d47d6b28e6326cab6a0e59919c
parentd54f2d4ed3ee1e650283d67d1f55b715229ac6c7
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_sysctl.c