1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microchip/vcap
Dan Carpenter 788f63c4dc 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>
2023-10-03 07:13:32 -07:00
..
Kconfig net: microchip: sparx5: Add VCAP debugfs KUNIT test 2022-11-21 11:33:02 +00:00
Makefile net: microchip: vcap: Add tc flower keys for lan966x 2023-02-10 08:03:09 +00:00
vcap_ag_api.h net: lan966x: Add ES0 VCAP model 2023-05-10 09:51:10 +01:00
vcap_api.c net: microchip: vcap api: Fix possible memory leak for vcap_dup_rule() 2023-09-10 18:51:42 +01:00
vcap_api.h net: microchip: Remove unused declarations 2023-08-22 10:31:47 -07:00
vcap_api_client.h net: microchip: Remove unused declarations 2023-08-22 10:31:47 -07:00
vcap_api_debugfs.c net: microchip: sparx5: clean up error checking in vcap_show_admin() 2023-10-03 07:13:32 -07:00
vcap_api_debugfs.h net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
vcap_api_debugfs_kunit.c net: lan966x: Add IS1 VCAP model 2023-03-10 16:44:24 -08:00
vcap_api_kunit.c net: microchip: sparx5: Fix possible memory leaks in vcap_api_kunit 2023-09-15 07:32:35 +01:00
vcap_api_private.h net: microchip: sparx5: Add VCAP admin locking in debugFS 2023-01-18 14:31:43 +00:00
vcap_model_kunit.c net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
vcap_model_kunit.h net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
vcap_tc.c net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00
vcap_tc.h net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00