net: bcmgenet: Return the variable ret rather then zero for the function bcmgenet_power_down
Subsystems (2)
Florian Fainelli
Reviewed-byQuoted 6 lines · Nicholas Krause
This makes the function
bcmgenet_power_downreturn the variable ret rather then zero in order to make this function be able to signal its caller with a error code when a failure occurs internally rather then always appearing to run successfully to its caller.Signed-off-by Nicholas Krause <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Quoted 18 lines
--- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/broadcom/genet/bcmgenet.c +1
-1@@ -877,7 +877,7 @@ static int bcmgenet_power_down(struct bcmgenet_priv *priv,break ; } -return 0 ; +return ret; } static void bcmgenet_power_up(struct bcmgenet_priv *priv,
Signature · 1 line
Florian