Re: [PATCH 3/4] hid-sensor-hub: move to devm_kzalloc

2013-08-19 Thread Srinivas Pandruvada
On 08/14/2013 01:07 AM, Andy Shevchenko wrote: devm_kzalloc() will manage resources freeing and allows to make error path smaller and nicer. Signed-off-by: Andy Shevchenko --- drivers/hid/hid-sensor-hub.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/

[PATCH 3/4] hid-sensor-hub: move to devm_kzalloc

2013-08-14 Thread Andy Shevchenko
devm_kzalloc() will manage resources freeing and allows to make error path smaller and nicer. Signed-off-by: Andy Shevchenko --- drivers/hid/hid-sensor-hub.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sens