aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorMikhail Kobuk <[email protected]>2023-08-25 22:04:41 +0300
committerDavid S. Miller <[email protected]>2023-08-28 10:22:00 +0100
commitec1b90886f3cd7e90d4c0381dffb418e2d3a1473 (patch)
tree24dfd99bd3ad62a9e0d4ef0df4bec8d0441b9992 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent977ad86c2a1bcaf58f01ab98df5cc145083c489c (diff)
ethernet: tg3: remove unreachable code
'tp->irq_max' value is either 1 [L16336] or 5 [L16354], as indicated in tg3_get_invariants(). Therefore, 'i' can't exceed 4 in tg3_init_one() that makes (i <= 4) always true. Moreover, 'intmbx' value set at the last iteration is not used later in it's scope. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 78f90dcf184b ("tg3: Move napi_add calls below tg3_get_invariants") Signed-off-by: Mikhail Kobuk <[email protected]> Reviewed-by: Alexey Khoroshilov <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions