Skip to content

Commit

Permalink
usb: gadget: ffs: fix sparse warning
Browse files Browse the repository at this point in the history
use NULL instead of 0 as pointer.

Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
Felipe Balbi committed Nov 25, 2013
1 parent d07a590 commit 63b12e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/f_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 63b12e3

Please sign in to comment.