aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-01-13 10:35:43 +0300
committerPaolo Abeni <[email protected]>2023-01-17 10:02:49 +0100
commit501543b4fff0ff70bde28a829eb8835081ccef2f (patch)
tree52cc63cd4387fd2231cdf0b5392c55a3c1d7eea8 /tools/perf/scripts/python/intel-pt-events.py
parent0349b8779cc949ad9e6aced32672ee48cf79b497 (diff)
devlink: remove some unnecessary code
This code checks if (attrs[DEVLINK_ATTR_TRAP_POLICER_ID]) twice. Once at the start of the function and then a couple lines later. Delete the second check since that one must be true. Because the second condition is always true, it means the: policer_item = group_item->policer_item; assignment is immediately over-written. Delete that as well. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Link: https://lore.kernel.org/r/Y8EJz8oxpMhfiPUb@kili Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions