diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-16 18:42:48 +0900 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-17 13:17:43 -0600 |
commit | 6195174ef4704d6e57a246189d65caed704d8613 (patch) | |
tree | d31e7932dfd3b5fead52851b2e8586d17a5c86cf | |
parent | 8002418dfff422f9b96de2a52112ed4d552d36bb (diff) | |
download | blackbird-obmc-linux-6195174ef4704d6e57a246189d65caed704d8613.tar.gz blackbird-obmc-linux-6195174ef4704d6e57a246189d65caed704d8613.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>
-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 a03ba2c83589..1dfecdf6146f 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; |