summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-11-25 11:16:49 -0600
committerFelipe Balbi <balbi@ti.com>2013-11-25 11:16:49 -0600
commit63b12e3ecebd2904ee2e6c59911c7a44a0b18fa5 (patch)
tree47f2f77962236d26e57f96dafbb4fa0a52da7f54 /drivers/usb
parentd07a59019d09fc71b6ae4de98478ae6375ee85ad (diff)
usb: gadget: ffs: fix sparse warning
use NULL instead of 0 as pointer. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-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 774e8b89cdb..241fc873ffa 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();