From: Felipe Balbi Date: Mon, 25 Nov 2013 17:16:49 +0000 (-0600) Subject: usb: gadget: ffs: fix sparse warning X-Git-Tag: v3.13-rc5~24^2~10^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63b12e3ecebd2904ee2e6c59911c7a44a0b18fa5;p=platform%2Fkernel%2Flinux-stable.git usb: gadget: ffs: fix sparse warning use NULL instead of 0 as pointer. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index 774e8b8..241fc87 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c @@ -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();