Skip to contentSkip to conversation

net: bcmgenet: Return the variable ret rather then zero for the function bcmgenet_power_down

PATCH Florian Fainelli 1 participant 1 message Jul 17, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Florian Fainelli

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · Nicholas Krause

This makes the function bcmgenet_power_down return 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.

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
index 64c1e9d..129e5b5 100644
@@ -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