diff mbox series

usb: gadget: function: remove redundant assignment to variable 'status'

Message ID 20200424113506.12930-1-colin.king@canonical.com (mailing list archive)
State Mainlined
Commit ded0d399754dbcae7ca0153ba87c68e66021f36a
Headers show
Series usb: gadget: function: remove redundant assignment to variable 'status' | expand

Commit Message

Colin King April 24, 2020, 11:35 a.m. UTC
From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/usb/gadget/function/f_eem.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

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