]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: misc: usb3503: Update error code in print message
authorTushar Behera <tushar.b@samsung.com>
Tue, 17 Jun 2014 11:08:50 +0000 (16:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 22:41:02 +0000 (15:41 -0700)
commitec5734c41bee2ee7c938a8f34853d31cada7e67a
tree42ca8931c13b621ae4a8d460f8c4d723b8d2d24b
parentf8dd7a2a3a572dd93d7e84d628ffb25b3309179b
usb: misc: usb3503: Update error code in print message

'err' is uninitialized, rather print the error code directly.

This also fixes following 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: Tushar Behera <tushar.b@samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb3503.c