usb: gadget: udc: renesas_usb3: remove redundant assignment to ret
authorColin Ian King <colin.king@canonical.com>
Wed, 26 Jun 2019 16:35:17 +0000 (17:35 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 3 Jul 2019 08:00:36 +0000 (11:00 +0300)
commit4aef7966060439bb4f9d440feacd5ce7697bce37
tree0a07af39875d96561dd3fa09d6b8386ed2cf7bf8
parentdfc4fdebc5d62ac4e2fe5428e59b273675515fb2
usb: gadget: udc: renesas_usb3: remove redundant assignment to ret

Variable ret is being initialized with a value that is never read and
ret is being re-assigned immediately after the initialization in both
paths of an if statement. This is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c