diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-05-06 23:39:10 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-10 16:09:14 +0300 |
commit | a60a34366e0d09ca002c966dd7c43a68c28b1f82 (patch) | |
tree | 5ba37a688d044fead09942e338fd0c4874767d16 /block | |
parent | f75297853470627c4ee4e2b80eed40af7441c96b (diff) | |
download | linux-a60a34366e0d09ca002c966dd7c43a68c28b1f82.tar.xz |
usb: fotg210-hcd: Fix an error message
'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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions