USB: gadget: dummy-hcd: remove redundant initialization of variable 'value'
authorColin Ian King <colin.king@canonical.com>
Wed, 17 Feb 2021 21:01:24 +0000 (21:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:37:15 +0000 (09:37 +0100)
commit292f750f43d06ea269323b5a6e40aab10e033162
tree8aae91c9891088a86e234e4fb9b85347751ed836
parent9c174b57c98e78310a15cf9808cf417fa4a65d9b
USB: gadget: dummy-hcd: remove redundant initialization of variable 'value'

The variable 'value' is being initialized with 1 that is never read
and it is being updated later with a new value. The initialization is
redundant and can be removed.

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