aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2023-04-18 16:00:18 +0100
committerSteven Rostedt (Google) <[email protected]>2023-04-25 19:24:28 -0400
commit73e053cbd00ed890abfc812d6c602cbfa8d234dc (patch)
tree435fcad6216cda39d157370867aaaa01b8c243c3 /lib/test_fortify/write_overflow-strncpy-src.c
parent54a0dffa62de0c91b406ff32082a121ccfa0d7f1 (diff)
rv: Remove redundant assignment to variable retval
Variable retval is being assigned a value that is never read, it is being re-assigned a new value in both paths of a following if statement. Remove the assignment. Cleans up clang-scan warning: kernel/trace/rv/rv.c:293:2: warning: Value stored to 'retval' is never read [deadcode.DeadStores] retval = count; Link: https://lkml.kernel.org/r/[email protected] Cc: Masami Hiramatsu <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Acked-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions