summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-12-12 12:15:43 -0600
committerFelipe Balbi <balbi@ti.com>2013-12-12 13:43:40 -0600
commitf8800d47bcdf5ae0582ac674657fd939a9105be0 (patch)
tree28475dbce085bdfbb3085be892208992ff008eb6 /drivers/usb/gadget
parentb658499f0f0f4ebf21d09c7da62a46f66ffa67cb (diff)
downloadop-kernel-dev-f8800d47bcdf5ae0582ac674657fd939a9105be0.zip
op-kernel-dev-f8800d47bcdf5ae0582ac674657fd939a9105be0.tar.gz
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/usb/gadget')
-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 12a64e1..306a2b5 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();
OpenPOWER on IntegriCloud