]> Git Repo - linux.git/commitdiff
net: sparx5: fix function return type to match actual type
authorCasper Andersson <[email protected]>
Tue, 6 Sep 2022 06:58:15 +0000 (08:58 +0200)
committerPaolo Abeni <[email protected]>
Thu, 8 Sep 2022 13:00:56 +0000 (15:00 +0200)
Function returns error integer, not bool.

Does not have any impact on functionality.

Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Casper Andersson <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h

index a5837dbe0c7e2e9fd564fd61e0a9809ff3853347..4af285918ea2a45cae16ca01ec1ab8fd3f5370c9 100644 (file)
@@ -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;
index 9b4395b7a9e4f7a0249ceddb22e81f5dd7bd5980..8b42cad0e49cd23ac19def002312f131ebe66c0e 100644 (file)
@@ -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,
This page took 0.063348 seconds and 4 git commands to generate.