Commit 75554fe0 authored by Casper Andersson's avatar Casper Andersson Committed by Paolo Abeni

net: sparx5: fix function return type to match actual type

Function returns error integer, not bool.

Does not have any impact on functionality.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarCasper Andersson <casper.casan@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220906065815.3856323-1-casper.casan@gmail.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent e66d6586
...@@ -186,8 +186,8 @@ bool sparx5_mact_getnext(struct sparx5 *sparx5, ...@@ -186,8 +186,8 @@ bool sparx5_mact_getnext(struct sparx5 *sparx5,
return ret == 0; return ret == 0;
} }
bool sparx5_mact_find(struct sparx5 *sparx5, int sparx5_mact_find(struct sparx5 *sparx5,
const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2) const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2)
{ {
int ret; int ret;
u32 cfg2; u32 cfg2;
......
...@@ -321,8 +321,8 @@ int sparx5_mact_learn(struct sparx5 *sparx5, int port, ...@@ -321,8 +321,8 @@ int sparx5_mact_learn(struct sparx5 *sparx5, int port,
const unsigned char mac[ETH_ALEN], u16 vid); const unsigned char mac[ETH_ALEN], u16 vid);
bool sparx5_mact_getnext(struct sparx5 *sparx5, bool sparx5_mact_getnext(struct sparx5 *sparx5,
unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2); unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2);
bool sparx5_mact_find(struct sparx5 *sparx5, int sparx5_mact_find(struct sparx5 *sparx5,
const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2); const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2);
int sparx5_mact_forget(struct sparx5 *sparx5, int sparx5_mact_forget(struct sparx5 *sparx5,
const unsigned char mac[ETH_ALEN], u16 vid); const unsigned char mac[ETH_ALEN], u16 vid);
int sparx5_add_mact_entry(struct sparx5 *sparx5, int sparx5_add_mact_entry(struct sparx5 *sparx5,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment