net: lan966x: Change lan966x_police_del return type
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sun, 12 Mar 2023 19:51:55 +0000 (20:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Mar 2023 07:28:56 +0000 (00:28 -0700)
commit68a84a127bb07d2a47e95c808520f742c54781c7
tree7c76a6bfc2c284f64c354b85cb7c539f4ae467f0
parentbcc858689db5f2e5a8d4d6e8bc5bb9736cd80626
net: lan966x: Change lan966x_police_del return type

As the function always returns 0 change the return type to be
void instead of int. In this way also remove a wrong message
in case of error which would never happen.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230312195155.1492881-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_police.c