Browse Source

usb: gadget: f_fs: fix sparse warning

use NULL when returning NULL pointers, not 0.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi 11 years ago
parent
commit
f8800d47bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/gadget/f_fs.c

+ 1 - 1
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();