usb: dwc3: gadget: Fix sparse warnings
authorMoiz Sonasath <m-sonasath@ti.com>
Wed, 1 Aug 2012 19:08:30 +0000 (14:08 -0500)
committerFelipe Balbi <balbi@ti.com>
Tue, 7 Aug 2012 05:28:20 +0000 (08:28 +0300)
commit348e026fafe2501281db5fb7fed599b337cad358
tree0a5a02cc373c46d19f7a9db65fa52f0c17d959bf
parent2dfe37d4a5f9a7586a7ff79249492fb8280afb6f
usb: dwc3: gadget: Fix sparse warnings

This patch fixes the following sparse warnings:

drivers/usb/dwc3/gadget.c:1096:7: warning: symbol 'ret' shadows an earlier one
drivers/usb/dwc3/gadget.c:1058:8: originally declared here
drivers/usb/dwc3/gadget.c:1100:16: warning: symbol 'dwc' shadows an earlier one
drivers/usb/dwc3/gadget.c:1057:15: originally declared here
drivers/usb/dwc3/gadget.c:1118:16: warning: symbol 'dwc' shadows an earlier one
drivers/usb/dwc3/gadget.c:1057:15: originally declared here
drivers/usb/dwc3/gadget.c:1800:19: warning: symbol 'dep' shadows an earlier one
drivers/usb/dwc3/gadget.c:1778:18: originally declared here

Also, fix the potential checkpatch errors around the if() loops that
this fix patch can create.

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c