genet:Return the variable ret rather then zero for the function bcmgenet_power_down
Subsystems (2)
Quoted 4 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.
Please adjust the subject to be "net: bcmgenet: blah blah", just to conform to the style used for all other changes.
This seems fine otherwise...
Quoted 20 lines
Signed-off-by Nicholas Krause <[email protected]>--- 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