aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-09-08 10:03:37 +0300
committerJakub Kicinski <[email protected]>2023-10-03 07:13:32 -0700
commit788f63c4dc1780c84deb5fe820f6446c28364a0d (patch)
treee2049633f3b4624c1531067a03fe30475d083436 /tools/perf/scripts/python/exported-sql-viewer.py
parent1412e667efa4de0ebad7c114ad434efca582ed43 (diff)
net: microchip: sparx5: clean up error checking in vcap_show_admin()
The vcap_decode_rule() never returns NULL. There is no need to check for that. This code assumes that if it did return NULL we should end abruptly and return success. It is confusing. Fix the check to just be if (IS_ERR()) instead of if (IS_ERR_OR_NULL()). Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Daniel Machon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions