Skip to contentSkip to conversation

genet:Return the variable ret rather then zero for the function bcmgenet_power_down

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

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 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.

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
---
 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