USB: gadget: legacy: remove redundant zero assignment to variable 'value'
authorColin Ian King <colin.king@canonical.com>
Wed, 22 Nov 2017 14:40:48 +0000 (14:40 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Dec 2017 10:36:51 +0000 (12:36 +0200)
commit2eeb44c4e5bc0cb0e9e43ff59c44098c925790a2
treefaf85d3e62c4f23f26bb3ac486c74fba90d70962
parent1f86eceb8d2ee1acfc2e51b2335fa29dca8df8d3
USB: gadget: legacy: remove redundant zero assignment to variable 'value'

The variable value is being assigned to zero but that value is never being
read.  Either value is being reassigned in the following if condition, or
it is never read and the function returns. In both cases the assignment is
redundant and can be removed. Cleans up clang warning:

drivers/usb/gadget/legacy/inode.c:1473:4: warning: Value stored to 'value'
is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/legacy/inode.c