usb: gadget: f_fs: fix sparse warning
authorFelipe Balbi <balbi@ti.com>
Thu, 12 Dec 2013 18:15:43 +0000 (12:15 -0600)
committerFelipe Balbi <balbi@ti.com>
Thu, 12 Dec 2013 19:43:40 +0000 (13:43 -0600)
use NULL when returning NULL pointers, not 0.

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

index 12a64e1c31ef0d4f7b791cbbc6e92f02a9a01ff7..306a2b52125c8e7ee2eba91bcf1156e689ae133e 100644 (file)
@@ -1137,7 +1137,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();