usb: gadget: net2272: remove redundant initialization of status
authorColin Ian King <colin.king@canonical.com>
Tue, 20 Apr 2021 11:06:22 +0000 (12:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Apr 2021 08:52:15 +0000 (10:52 +0200)
commit53f666869db5d8bfdcb85709808708596b26f02f
tree6e2d1a392fb9e83096ea80c558b5399538858942
parent95dbac94da7f9cff9a056fcf9c3a1679aa5ac337
usb: gadget: net2272: remove redundant initialization of status

The variable status is being initialized with a value that is
never read and it is being updated later with a new value.  The
initialization is redundant and can be removed and move the
declaration of status to the scope where it is used.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20210420110622.377339-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/net2272.c