diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-09-08 10:03:37 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-03 17:13:32 +0300 |
commit | 788f63c4dc1780c84deb5fe820f6446c28364a0d (patch) | |
tree | e2049633f3b4624c1531067a03fe30475d083436 /drivers/net/ethernet/netronome/nfp/nfd3 | |
parent | 1412e667efa4de0ebad7c114ad434efca582ed43 (diff) | |
download | linux-788f63c4dc1780c84deb5fe820f6446c28364a0d.tar.xz |
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 <lkp@intel.com>
Closes: https://lore.kernel.org/r/202309070831.hTvj9ekP-lkp@intel.com/
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://lore.kernel.org/r/b88eba86-9488-4749-a896-7c7050132e7b@moroto.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfd3')
0 files changed, 0 insertions, 0 deletions