hw/net/rocker/rocker_of_dpa.c: Remove superfluous error check
authorRodrigo Dias Correa <r@drigo.nl>
Tue, 19 Nov 2024 13:02:05 +0000 (13:02 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Nov 2024 13:02:05 +0000 (13:02 +0000)
commit35ec474fd64224c0ff58b8c9730117fe5d31d40f
treefb0bbcec07f6a309783d03a9689e9eaaef421f52
parentc5d36da7ec62e4c72a72a437057fb6072cf0d6ab
hw/net/rocker/rocker_of_dpa.c: Remove superfluous error check

of_dpa_cmd_add_acl_ip() is called from a single place, and despite the
fact that it always returns ROCKER_OK, its return value is still checked
by the caller.

Change of_dpa_cmd_add_acl_ip() to return void and remove the superfluous
check from of_dpa_cmd_add_acl().

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2471
Signed-off-by: Rodrigo Dias Correa <r@drigo.nl>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Message-id: 20241114075051.404284-1-r@drigo.nl
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/rocker/rocker_of_dpa.c