diff options
author | 2017-11-07 14:39:14 +0000 | |
---|---|---|
committer | 2017-12-11 12:36:51 +0200 | |
commit | 71a9fda36829273eac4770dd539c80303969c5d8 (patch) | |
tree | 0ec25d24ebfc7788979cda5edbc0f09fbfa3991e /drivers/usb/dwc3/core.c | |
parent | usb: gadget: udc-xilinx: remove redundant pointer udc (diff) | |
download | wireguard-linux-71a9fda36829273eac4770dd539c80303969c5d8.tar.xz wireguard-linux-71a9fda36829273eac4770dd539c80303969c5d8.zip |
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>
Diffstat (limited to 'drivers/usb/dwc3/core.c')
0 files changed, 0 insertions, 0 deletions