net:bcmgent:Return the variable ret rather then zero for the function bcmgenet_power_down
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
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.
Still not quite the right subject (missing spaces, typos), copy/paste this:
net: bcmgenet: Return the variable ret rather then zero for the function bcmgenet_power_down
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