OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07a590
)
usb: gadget: ffs: fix sparse warning
author
Felipe Balbi
<balbi@ti.com>
Mon, 25 Nov 2013 17:16:49 +0000
(11:16 -0600)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 25 Nov 2013 17:16:49 +0000
(11:16 -0600)
use NULL instead of 0 as pointer.
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
774e8b8
..
241fc87
100644
(file)
--- 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();