* [PATCH] phy: cpcap-usb: Fix missing return statement
@ 2017-06-12 8:12 Tony Lindgren
2017-06-12 9:41 ` Sebastian Reichel
2017-06-16 5:55 ` Kishon Vijay Abraham I
0 siblings, 2 replies; 3+ messages in thread
From: Tony Lindgren @ 2017-06-12 8:12 UTC (permalink / raw)
To: Kishon Vijay Abraham I; +Cc: linux-kernel, linux-usb, linux-omap
Commit 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
is missing return statement as noted by Colin Ian King
<colin.king@canonical.com>. If the optional pins are not configured,
we just want to return early and not attempt to configure the pins.
Fixes: 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
drivers/phy/motorola/phy-cpcap-usb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c
--- a/drivers/phy/motorola/phy-cpcap-usb.c
+++ b/drivers/phy/motorola/phy-cpcap-usb.c
@@ -468,6 +468,8 @@ static int cpcap_usb_init_optional_pins(struct cpcap_phy_ddata *ddata)
dev_info(ddata->dev, "default pins not configured: %ld\n",
PTR_ERR(ddata->pins));
ddata->pins = NULL;
+
+ return 0;
}
ddata->pins_ulpi = pinctrl_lookup_state(ddata->pins, "ulpi");
--
2.13.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: cpcap-usb: Fix missing return statement
2017-06-12 8:12 [PATCH] phy: cpcap-usb: Fix missing return statement Tony Lindgren
@ 2017-06-12 9:41 ` Sebastian Reichel
2017-06-16 5:55 ` Kishon Vijay Abraham I
1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2017-06-12 9:41 UTC (permalink / raw)
To: Tony Lindgren; +Cc: Kishon Vijay Abraham I, linux-kernel, linux-usb, linux-omap
[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]
Hi,
On Mon, Jun 12, 2017 at 01:12:23AM -0700, Tony Lindgren wrote:
> Commit 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
> is missing return statement as noted by Colin Ian King
> <colin.king@canonical.com>. If the optional pins are not configured,
> we just want to return early and not attempt to configure the pins.
>
> Fixes: 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
> Reported-by: Colin Ian King <colin.king@canonical.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-- Sebastian
> ---
> drivers/phy/motorola/phy-cpcap-usb.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c
> --- a/drivers/phy/motorola/phy-cpcap-usb.c
> +++ b/drivers/phy/motorola/phy-cpcap-usb.c
> @@ -468,6 +468,8 @@ static int cpcap_usb_init_optional_pins(struct cpcap_phy_ddata *ddata)
> dev_info(ddata->dev, "default pins not configured: %ld\n",
> PTR_ERR(ddata->pins));
> ddata->pins = NULL;
> +
> + return 0;
> }
>
> ddata->pins_ulpi = pinctrl_lookup_state(ddata->pins, "ulpi");
> --
> 2.13.0
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: cpcap-usb: Fix missing return statement
2017-06-12 8:12 [PATCH] phy: cpcap-usb: Fix missing return statement Tony Lindgren
2017-06-12 9:41 ` Sebastian Reichel
@ 2017-06-16 5:55 ` Kishon Vijay Abraham I
1 sibling, 0 replies; 3+ messages in thread
From: Kishon Vijay Abraham I @ 2017-06-16 5:55 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-kernel, linux-usb, linux-omap
On Monday 12 June 2017 01:42 PM, Tony Lindgren wrote:
> Commit 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
> is missing return statement as noted by Colin Ian King
> <colin.king@canonical.com>. If the optional pins are not configured,
> we just want to return early and not attempt to configure the pins.
>
> Fixes: 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
> Reported-by: Colin Ian King <colin.king@canonical.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
merged, thanks!
-Kishon
> ---
> drivers/phy/motorola/phy-cpcap-usb.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c
> --- a/drivers/phy/motorola/phy-cpcap-usb.c
> +++ b/drivers/phy/motorola/phy-cpcap-usb.c
> @@ -468,6 +468,8 @@ static int cpcap_usb_init_optional_pins(struct cpcap_phy_ddata *ddata)
> dev_info(ddata->dev, "default pins not configured: %ld\n",
> PTR_ERR(ddata->pins));
> ddata->pins = NULL;
> +
> + return 0;
> }
>
> ddata->pins_ulpi = pinctrl_lookup_state(ddata->pins, "ulpi");
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-16 5:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 8:12 [PATCH] phy: cpcap-usb: Fix missing return statement Tony Lindgren
2017-06-12 9:41 ` Sebastian Reichel
2017-06-16 5:55 ` 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
all inboxes | Powered by JetHome®