Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459665 > unrolled thread

[PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails

Started byAxel Lin <axel.lin@ingics.com>
First post2016-08-10 21:30 +0200
Last post2016-08-12 10:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails Axel Lin <axel.lin@ingics.com> - 2016-08-10 21:30 +0200
    Re: [PATCH RESEND] phy: brcm-sata: Return proper error if  brcm_sata_phy_init fails Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-12 10:50 +0200

#1459665 — [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails

FromAxel Lin <axel.lin@ingics.com>
Date2016-08-10 21:30 +0200
Subject[PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
Message-ID<s4Hmq-Ul-37@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1461012 — Re: [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails

FromKishon Vijay Abraham I <kishon@ti.com>
Date2016-08-12 10:50 +0200
SubjectRe: [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
Message-ID<s5gk9-7MR-3@gated-at.bofh.it>
In reply to#1459665

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web