mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
usb: gadget: function: remove redundant assignment to variable 'status'
The variable status is being assigned a value that is never read
and it is being updated later with a new value. The assignment
is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
This commit is contained in:
committed by
Felipe Balbi
parent
7a0fbcf7c3
commit
ded0d39975
@@ -291,8 +291,6 @@ static int eem_bind(struct usb_configuration *c, struct usb_function *f)
|
||||
goto fail;
|
||||
eem->port.out_ep = ep;
|
||||
|
||||
status = -ENOMEM;
|
||||
|
||||
/* support all relevant hardware speeds... we expect that when
|
||||
* hardware is dual speed, all bulk-capable endpoints work at
|
||||
* both speeds
|
||||
|
||||
Reference in New Issue
Block a user