summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-04-11 12:17:04 +0300
committerJakub Kicinski <kuba@kernel.org>2024-04-13 05:07:31 +0300
commit195b7fc53c6f45feb0f649c7c68af70900928253 (patch)
treeeb4b114d3d2d1f8f49644bae1b0071e7cfa826a5 /tools/perf/scripts/python
parentd13b05962369bade0fb8e2d55af56492f866cd36 (diff)
downloadlinux-195b7fc53c6f45feb0f649c7c68af70900928253.tar.xz
tipc: remove redundant assignment to ret, simplify code
Variable err is being assigned a zero value and it is never read afterwards in either the break path or continue path, the assignment is redundant and can be removed. With it removed, the if statement can also be simplified. Cleans up clang scan warning: net/tipc/socket.c:3570:5: warning: Value stored to 'err' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240411091704.306752-1-colin.i.king@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions