]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: fotg210-hcd: Fix an error message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 6 May 2021 20:39:10 +0000 (22:39 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:07:29 +0000 (11:07 +0200)
commitfde95e2dc5d50b9651e363c2249db327be530411
tree4a7c133d46423fcbec8c2614da36b83b2ad0840d
parent4dbac317e7f3f6ce967c63896f781e5325ebfc12
usb: fotg210-hcd: Fix an error message

BugLink: https://bugs.launchpad.net/bugs/1931292
[ Upstream commit a60a34366e0d09ca002c966dd7c43a68c28b1f82 ]

'retval' is known to be -ENODEV here.
This is a hard-coded default error code which is not useful in the error
message. Moreover, another error message is printed at the end of the
error handling path. The corresponding error code (-ENOMEM) is more
informative.

So remove simplify the first error message.

While at it, also remove the useless initialization of 'retval'.

Fixes: 7d50195f6c50 ("usb: host: Faraday fotg210-hcd driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/94531bcff98e46d4f9c20183a90b7f47f699126c.1620333419.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/usb/host/fotg210-hcd.c