summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-24 12:35:06 +0100
committerFelipe Balbi <balbi@kernel.org>2020-05-25 11:09:39 +0300
commitded0d399754dbcae7ca0153ba87c68e66021f36a (patch)
tree818664d626005b57517fe7135b63c13aca663b12 /drivers/usb/gadget/function
parent7a0fbcf7c308920bc6116b3a5fb21c8cc5fec128 (diff)
downloadlinux-ded0d399754dbcae7ca0153ba87c68e66021f36a.tar.bz2
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>
Diffstat (limited to 'drivers/usb/gadget/function')
-rw-r--r--drivers/usb/gadget/function/f_eem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_eem.c b/drivers/usb/gadget/function/f_eem.c
index b81a91d504bd..cfcc4e81fb77 100644
--- a/drivers/usb/gadget/function/f_eem.c
+++ b/drivers/usb/gadget/function/f_eem.c
@@ -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