[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 rseelaboy...@nvidia.com --- 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

[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 rseelaboy...@nvidia.com --- 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

[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 rseelaboy...@nvidia.com --- 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