From: Felipe Balbi Date: Thu, 12 Dec 2013 18:15:43 +0000 (-0600) Subject: usb: gadget: f_fs: fix sparse warning X-Git-Tag: v3.14-rc1~148^2~90^2~47 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f8800d47bcdf5ae0582ac674657fd939a9105be0;p=users%2Fjedix%2Flinux-maple.git usb: gadget: f_fs: fix sparse warning use NULL when returning NULL pointers, not 0. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index 12a64e1c31ef0..306a2b52125c8 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c @@ -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();