projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/usb/gadget/f_fs.c
b/drivers/usb/gadget/f_fs.c
index 12a64e1c31ef0d4f7b791cbbc6e92f02a9a01ff7..306a2b52125c8e7ee2eba91bcf1156e689ae133e 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();