diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-16 18:42:48 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:43:26 +0900 |
commit | ac5ff05ac1046a785b5123f733cf6e1b13c7784b (patch) | |
tree | 49e46eb5d4bcd8aaf79c304c0d250aec75208271 /drivers | |
parent | a732d35e8396f9e5ab5b204584bd54817e824a5b (diff) | |
download | linux-3.10-ac5ff05ac1046a785b5123f733cf6e1b13c7784b.tar.gz linux-3.10-ac5ff05ac1046a785b5123f733cf6e1b13c7784b.tar.bz2 linux-3.10-ac5ff05ac1046a785b5123f733cf6e1b13c7784b.zip |
usb: gadget: f_mass_storage: Fix sparse warning
Use NULL instead of 0 when returning pointer, to fix the following
sparse warnings.
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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_mass_storage.c | 2 |
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 a03ba2c8358..1dfecdf6146 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; |