diff options
| author | Dan Carpenter <error27@gmail.com> | 2023-01-13 10:35:43 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2023-01-17 10:02:49 +0100 |
| commit | 501543b4fff0ff70bde28a829eb8835081ccef2f (patch) | |
| tree | 52cc63cd4387fd2231cdf0b5392c55a3c1d7eea8 /tools/perf/scripts/python | |
| parent | sched: add new attr TCA_EXT_WARN_MSG to report tc extact message (diff) | |
| download | linux-501543b4fff0ff70bde28a829eb8835081ccef2f.tar.gz linux-501543b4fff0ff70bde28a829eb8835081ccef2f.zip | |
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 <error27@gmail.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/Y8EJz8oxpMhfiPUb@kili
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
