public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] usb: usb3503: fix build warning
@ 2014-07-10  4:23 Joonyoung Shim
  2014-07-10  4:23 ` [PATCH 2/3] usb: usb3503: add PM functions Joonyoung Shim
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joonyoung Shim @ 2014-07-10  4:23 UTC (permalink / raw)
  To: linux-usb, linux-kernel
  Cc: gregkh, m.szyprowski, broonie, tobetter, jy0922.shim

This fixes below build warning.

drivers/usb/misc/usb3503.c: In function ‘usb3503_probe’:
drivers/usb/misc/usb3503.c:195:11: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    dev_err(dev, "unable to request refclk (%d)\n", err);
           ^
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/usb/misc/usb3503.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c
index f43c619..652855b 100644
--- a/drivers/usb/misc/usb3503.c
+++ b/drivers/usb/misc/usb3503.c
@@ -192,7 +192,8 @@ static int usb3503_probe(struct usb3503 *hub)
 
 		clk = devm_clk_get(dev, "refclk");
 		if (IS_ERR(clk) && PTR_ERR(clk) != -ENOENT) {
-			dev_err(dev, "unable to request refclk (%d)\n", err);
+			dev_err(dev, "unable to request refclk (%ld)\n",
+					PTR_ERR(clk));
 			return PTR_ERR(clk);
 		}
 
-- 
1.8.1.2


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

end of thread, other threads:[~2014-07-10  5:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10  4:23 [PATCH 1/3] usb: usb3503: fix build warning Joonyoung Shim
2014-07-10  4:23 ` [PATCH 2/3] usb: usb3503: add PM functions Joonyoung Shim
2014-07-10  4:23 ` [PATCH 3/3] USB: add reset resume quirk for usb3503 Joonyoung Shim
2014-07-10  4:52 ` [PATCH 1/3] usb: usb3503: fix build warning Sachin Kamat
2014-07-10  5:05   ` Greg Kroah-Hartman
2014-07-10  5:11     ` Joonyoung Shim

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