usb: gadget: pxa27x: Remove redundant assignment to is_short and dev
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Nov 2017 14:39:14 +0000 (14:39 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Dec 2017 10:36:51 +0000 (12:36 +0200)
commit71a9fda36829273eac4770dd539c80303969c5d8
tree0ec25d24ebfc7788979cda5edbc0f09fbfa3991e
parent1fd4c45d6cd39a09bd8c7cbd57a7e83da97b51bf
usb: gadget: pxa27x: Remove redundant assignment to is_short and dev

Variable is_short is set to zero but this value is never read as it is
overwritten with a new value later on, hence it is a redundant
assignment and can be removed.  Pointer dev is assigned a value that
is not read and it is updated a few statements later, this too is
redundant and can be removed. Cleans up clan warnings:

drivers/usb/gadget/udc/pxa27x_udc.c:986:3: warning: Value stored
to 'is_short' is never read
drivers/usb/gadget/udc/pxa27x_udc.c:1141:2: warning: Value stored
to 'dev' is never read

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/pxa27x_udc.c