Commit a60a343
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: 7d50195 ("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>1 parent f752978 commit a60a343
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5568 | 5568 | | |
5569 | 5569 | | |
5570 | 5570 | | |
5571 | | - | |
| 5571 | + | |
5572 | 5572 | | |
5573 | 5573 | | |
5574 | 5574 | | |
| |||
5588 | 5588 | | |
5589 | 5589 | | |
5590 | 5590 | | |
5591 | | - | |
| 5591 | + | |
5592 | 5592 | | |
5593 | 5593 | | |
5594 | 5594 | | |
| |||
0 commit comments