]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
usb: gadget: f_mass_storage: Fix sparse warning
authorJingoo Han <jg1.han@samsung.com>
Mon, 16 Dec 2013 09:42:48 +0000 (18:42 +0900)
committerFelipe Balbi <balbi@ti.com>
Tue, 17 Dec 2013 19:17:43 +0000 (13:17 -0600)
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>
drivers/usb/gadget/f_mass_storage.c

index a03ba2c83589ee15f9c1880d17f1aa133eb47f29..1dfecdf6146f100fcfb842b6480630ff2e5cb19c 100644 (file)
@@ -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;