projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b658499
)
usb: gadget: f_fs: fix sparse warning
author
Felipe Balbi
<balbi@ti.com>
Thu, 12 Dec 2013 18:15:43 +0000
(12:15 -0600)
committer
Felipe Balbi
<balbi@ti.com>
Thu, 12 Dec 2013 19:43:40 +0000
(13:43 -0600)
use NULL when returning NULL pointers, not 0.
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_fs.c
b/drivers/usb/gadget/f_fs.c
index
12a64e1
..
306a2b5
100644
(file)
--- 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();