summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-12-12 22:15:43 +0400
committerFelipe Balbi <balbi@ti.com>2013-12-12 23:43:40 +0400
commitf8800d47bcdf5ae0582ac674657fd939a9105be0 (patch)
tree28475dbce085bdfbb3085be892208992ff008eb6 /drivers
parentb658499f0f0f4ebf21d09c7da62a46f66ffa67cb (diff)
downloadlinux-f8800d47bcdf5ae0582ac674657fd939a9105be0.tar.xz
usb: gadget: f_fs: fix sparse warning
use NULL when returning NULL pointers, not 0. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index 12a64e1c31ef..306a2b52125c 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();