usb: gadget: ffs: fix sparse warning
authorFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 17:16:49 +0000 (11:16 -0600)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 17:16:49 +0000 (11:16 -0600)
use NULL instead of 0 as pointer.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c

index 774e8b89cdb593bf951b5c82e97c169f921a6130..241fc873ffa4569fcc98a3a93ff98e3f07339d72 100644 (file)
@@ -1304,7 +1304,7 @@ static struct ffs_data *ffs_data_new(void)
 {
        struct ffs_data *ffs = kzalloc(sizeof *ffs, GFP_KERNEL);
        if (unlikely(!ffs))
-               return 0;
+               return NULL;
 
        ENTER();