mlxsw: spectrum_switchdev: Convert mlxsw_sp_mc_write_mdb_entry() to return int
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Jun 2022 08:33:38 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:56:57 +0000 (12:56 +0100)
commitfd66f5184c28dd07ae7efeb2fa9a93c9c85ba66c
tree048a593fd68789f2ab3c49f95acea1d73a7bcc06
parentc96a9919c79e61e791c561a9c9c2ce56371866a1
mlxsw: spectrum_switchdev: Convert mlxsw_sp_mc_write_mdb_entry() to return int

The function returns 'false' upon failure and 'true' upon success.
Convert it to the usual scheme of returning integer error codes and
align the callers.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c