Re: [PATCH] HID: hid-sensor-hub: use devm_ functions consistently

2014-08-14 Thread Jonathan Cameron
On 03/08/14 00:55, Srinivas Pandruvada wrote: > > On 08/02/2014 03:11 PM, Himangi Saraogi wrote: >> Use devm_kzalloc for all calls to kzalloc and not just the first. Use >> devm functions for other allocations as well. The calls to free the >> allocated memory in the probe and remove functions ar

Re: [PATCH] HID: hid-sensor-hub: use devm_ functions consistently

2014-08-12 Thread Jiri Kosina
On Sat, 2 Aug 2014, Srinivas Pandruvada wrote: > > Use devm_kzalloc for all calls to kzalloc and not just the first. Use > > devm functions for other allocations as well. The calls to free the > > allocated memory in the probe and remove functions are done away with > > and a label is removed in

Re: [PATCH] HID: hid-sensor-hub: use devm_ functions consistently

2014-08-02 Thread Srinivas Pandruvada
On 08/02/2014 03:11 PM, Himangi Saraogi wrote: Use devm_kzalloc for all calls to kzalloc and not just the first. Use devm functions for other allocations as well. The calls to free the allocated memory in the probe and remove functions are done away with and a label is removed in the probe func

[PATCH] HID: hid-sensor-hub: use devm_ functions consistently

2014-08-02 Thread Himangi Saraogi
Use devm_kzalloc for all calls to kzalloc and not just the first. Use devm functions for other allocations as well. The calls to free the allocated memory in the probe and remove functions are done away with and a label is removed in the probe function. The semantic match that finds the inconsist