public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
@ 2016-08-10 10:04 Axel Lin
  2016-08-12  8:40 ` Kishon Vijay Abraham I
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2016-08-10 10:04 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Anup Patel, Florian Fainelli, linux-kernel, Axel Lin

Return proper error instead of 0 if brcm_sata_phy_init fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
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(-)

diff --git a/drivers/phy/phy-brcm-sata.c b/drivers/phy/phy-brcm-sata.c
index 18d6626..8ffc44a 100644
--- a/drivers/phy/phy-brcm-sata.c
+++ b/drivers/phy/phy-brcm-sata.c
@@ -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 = {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
  2016-08-10 10:04 [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails Axel Lin
@ 2016-08-12  8:40 ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 2+ messages in thread
From: Kishon Vijay Abraham I @ 2016-08-12  8:40 UTC (permalink / raw)
  To: Axel Lin; +Cc: Anup Patel, Florian Fainelli, linux-kernel



On Wednesday 10 August 2016 03:34 PM, Axel Lin wrote:
> Return proper error instead of 0 if brcm_sata_phy_init fails.

merged now, thanks.

-Kishon

> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> 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(-)
> 
> diff --git a/drivers/phy/phy-brcm-sata.c b/drivers/phy/phy-brcm-sata.c
> index 18d6626..8ffc44a 100644
> --- a/drivers/phy/phy-brcm-sata.c
> +++ b/drivers/phy/phy-brcm-sata.c
> @@ -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 = {
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-12  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-10 10:04 [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails Axel Lin
2016-08-12  8:40 ` Kishon Vijay Abraham I

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox