commit | f8800d47bcdf5ae0582ac674657fd939a9105be0 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Thu Dec 12 12:15:43 2013 -0600 |
committer | Felipe Balbi <balbi@ti.com> | Thu Dec 12 13:43:40 2013 -0600 |
tree | 28475dbce085bdfbb3085be892208992ff008eb6 | |
parent | b658499f0f0f4ebf21d09c7da62a46f66ffa67cb [diff] [blame] |
usb: gadget: f_fs: fix sparse warning use NULL when returning NULL pointers, not 0. Signed-off-by: Felipe Balbi <balbi@ti.com>
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index 12a64e1..306a2b5 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c
@@ -1137,7 +1137,7 @@ { struct ffs_data *ffs = kzalloc(sizeof *ffs, GFP_KERNEL); if (unlikely(!ffs)) - return 0; + return NULL; ENTER();