diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-10-17 23:45:56 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-18 22:55:06 +0100 |
commit | 1aae9056b1ce29ed9a691e0f6c4bb3b08b5d7374 (patch) | |
tree | c8a0688fd624cc60c6c4ef4b2157bc4fa4d1c007 /scripts/sphinx-pre-install | |
parent | core_pattern: add CPU specifier (diff) | |
download | linux-1aae9056b1ce29ed9a691e0f6c4bb3b08b5d7374.tar.xz linux-1aae9056b1ce29ed9a691e0f6c4bb3b08b5d7374.zip |
lib/oid_registry.c: remove redundant assignment to variable num
The variable num is being assigned a value that is never read, it is being
re-assigned a new value in both paths if an if-statement. The assignment
is redundant and can be removed.
Cleans up clang scan build warning:
lib/oid_registry.c:149:3: warning: Value stored to 'num' is
never read [deadcode.DeadStores]
Link: https://lkml.kernel.org/r/20221017214556.863357-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/sphinx-pre-install')
0 files changed, 0 insertions, 0 deletions