mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Casper Andersson <casper.casan@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20220906065815.3856323-1-casper.casan@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
e66d658684
commit
75554fe00f
|
|
@ -186,8 +186,8 @@ bool sparx5_mact_getnext(struct sparx5 *sparx5,
|
|||
return ret == 0;
|
||||
}
|
||||
|
||||
bool sparx5_mact_find(struct sparx5 *sparx5,
|
||||
const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2)
|
||||
int sparx5_mact_find(struct sparx5 *sparx5,
|
||||
const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2)
|
||||
{
|
||||
int ret;
|
||||
u32 cfg2;
|
||||
|
|
|
|||
|
|
@ -321,8 +321,8 @@ int sparx5_mact_learn(struct sparx5 *sparx5, int port,
|
|||
const unsigned char mac[ETH_ALEN], u16 vid);
|
||||
bool sparx5_mact_getnext(struct sparx5 *sparx5,
|
||||
unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2);
|
||||
bool sparx5_mact_find(struct sparx5 *sparx5,
|
||||
const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2);
|
||||
int sparx5_mact_find(struct sparx5 *sparx5,
|
||||
const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2);
|
||||
int sparx5_mact_forget(struct sparx5 *sparx5,
|
||||
const unsigned char mac[ETH_ALEN], u16 vid);
|
||||
int sparx5_add_mact_entry(struct sparx5 *sparx5,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user