lkml.org 
[lkml]   [2014]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] HID: hid-sensor-hub: use devm_ functions consistently
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 the probe function.
> >
> > The semantic match that finds the inconsistency is as follows:
> >
> > // <smpl>
> > @@
> > @@
> >
> > *devm_kzalloc(...)
> > ...
> > *kzalloc(...)
> > // </smpl>
> >
> > Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
> > Acked-by: Julia Lawall <julia.lawall@lip6.fr>
> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@intel.com>

Queued for 3.17, thanks.

--
Jiri Kosina
SUSE Labs


\
 
 \ /
  Last update: 2014-08-12 16:41    [W:0.042 / U:1.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site