summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-11-25 18:07:46 +0100
committerFelipe Balbi <balbi@ti.com>2013-11-25 18:07:46 +0100
commitf91d2f4337cdf8009da21cb93173099caf7981d4 (patch)
tree6c72e422f0fda04c2db4c78761d214382bb6002a /drivers/usb/gadget
parentusb: phy: phy-rcar-gen2-usb: fix phy initialization (diff)
downloadlinux-f91d2f4337cdf8009da21cb93173099caf7981d4.tar.xz
linux-f91d2f4337cdf8009da21cb93173099caf7981d4.zip
usb: gadget: storage: fix sparse warning
fsg_common_set_inquiry_string() expects pointers as second and third argument. Let's fix that by passing NULL instead of plain 0 just so we silence sparse's: drivers/usb/gadget/f_mass_storage.c:3114:60: warning: \ Using plain integer as NULL pointer drivers/usb/gadget/f_mass_storage.c:3114:63: warning: \ Using plain integer as NULL pointer Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/f_mass_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index e5dd532b34bb..1b2c19b1e829 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -3111,7 +3111,7 @@ static int fsg_bind(struct usb_configuration *c, struct usb_function *f)
fsg->common->can_stall);
if (ret)
return ret;
- fsg_common_set_inquiry_string(fsg->common, 0, 0);
+ fsg_common_set_inquiry_string(fsg->common, NULL, NULL);
ret = fsg_common_run_thread(fsg->common);
if (ret)
return ret;