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

From: Jiri Kosina
Date: Tue Aug 12 2014 - 10:28:52 EST


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@xxxxxxxxx>
> > Acked-by: Julia Lawall <julia.lawall@xxxxxxx>
> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxx>

Queued for 3.17, thanks.

--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/