usb: gadget: function: remove redundant assignment to variable 'status'
authorColin Ian King <colin.king@canonical.com>
Fri, 24 Apr 2020 11:35:06 +0000 (12:35 +0100)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:39 +0000 (11:09 +0300)
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>
drivers/usb/gadget/function/f_eem.c

index b81a91d504bde2eff0a7e0da858f2892f3c57a69..cfcc4e81fb77656664077ba584dddf83f1f2f845 100644 (file)
@@ -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