linux/net/devlink
Dan Carpenter 501543b4ff 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>
2023-01-17 10:02:49 +01:00
..
core.c devlink: keep the instance mutex alive until references are gone 2023-01-11 20:49:32 -08:00
devl_internal.h devlink: keep the instance mutex alive until references are gone 2023-01-11 20:49:32 -08:00
leftover.c devlink: remove some unnecessary code 2023-01-17 10:02:49 +01:00
Makefile devlink: split out netlink code 2023-01-05 22:13:39 -08:00
netlink.c devlink: always check if the devlink instance is registered 2023-01-06 12:56:19 +00:00