[PATCH v3] usb: gadget: ffs: Fix sparse error

2014-12-24 Thread Rohith Seelaboyina
allocation is successful and return -ENOMEM on failure. Signed-off-by: Rohith Seelaboyina --- Changes in v3: - Follow kernel coding style to seperate variable declaration and assignment. Changes in v2: - Use kcalloc to allocate memory instead of using kmalloc and memset. drivers

[PATCH v2] usb: gadget: ffs: Fix sparse error

2014-12-24 Thread Rohith Seelaboyina
allocation is successful and return -ENOMEM on failure. Signed-off-by: Rohith Seelaboyina --- Changes in v2: - Use kcalloc to allocate memory instead of using kmalloc and memset. drivers/usb/gadget/function/f_fs.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff

[PATCH] usb: gadget: ffs: Fix sparse error

2014-12-23 Thread Rohith Seelaboyina
allocation is successful and return -ENOMEM on failure. Signed-off-by: Rohith Seelaboyina --- drivers/usb/gadget/function/f_fs.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index