Skip to contentSkip to conversation

phy: brcm-sata: Return proper error if brcm_sata_phy_init fails

PATCH RESEND In review Axel Lin 2 participants 2 messages Aug 10, 2016 – Aug 12, 2016 Generic PHY framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH RESEND 1/1 phy: brcm-sata: Return proper error if brcm_sata_phy_init fails

Return proper error instead of 0 if brcm_sata_phy_init fails.

---
It was sent on https://lkml.org/lkml/2016/5/23/12 .

 drivers/phy/phy-brcm-sata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/phy-brcm-sata.c +1 -1
index 18d6626..8ffc44a 100644
@@ -367,7 +367,7 @@ static int brcm_sata_phy_init(struct phy *phy)
 		rc = -ENODEV;
 	};
 
-	return 0;
+	return rc;
 }
 
 static const struct phy_ops phy_ops = {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 1 line · Axel Lin

Return proper error instead of 0 if brcm_sata_phy_init fails.

merged now, thanks.

-Kishon

Quoted 21 lines

---
It was sent on https://lkml.org/lkml/2016/5/23/12 .

 drivers/phy/phy-brcm-sata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/phy-brcm-sata.c +1 -1
index 18d6626..8ffc44a 100644
@@ -367,7 +367,7 @@ static int brcm_sata_phy_init(struct phy *phy)
 		rc = -ENODEV;
 	};
 
-	return 0;
+	return rc;
 }
 
 static const struct phy_ops phy_ops = {