aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorQianqiang Liu <[email protected]>2024-09-13 09:47:32 +0800
committerJakub Kicinski <[email protected]>2024-09-13 19:53:47 -0700
commit7fd551a87ba427fee2df8af4d83f4b7c220cc9dd (patch)
tree6cd3078c6b5a8dca9a678f31d2849777d18508c1 /tools/perf/util/scripting-engines/trace-event-python.c
parentef17c3d22cee57a857f3fbd3483d430fd5a44e1b (diff)
net: ag71xx: remove dead code path
The "err" is always zero, so the following branch can never be executed: if (err) { ndev->stats.rx_dropped++; kfree_skb(skb); } Therefore, the "if" statement can be removed. Use "ndev->stats.rx_errors" to count "napi_build_skb()" failure Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Vadim Fedorenko <[email protected]> Reviewed-by: Oleksij Rempel <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Qianqiang Liu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions