diff options
author | Himangi Saraogi <[email protected]> | 2014-08-03 03:41:35 +0530 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2014-08-12 16:27:22 +0200 |
commit | 5be5db24fc0883d9e38df378c1de9a00f8933999 (patch) | |
tree | 9d73748ec2f32c80f9caa0b1e2ec9371dfe50bff /net/lapb/lapb_subr.c | |
parent | 6498d02306b337393b0bc92164857f3e6949c4e8 (diff) |
HID: hid-sensor-hub: use devm_ functions consistently
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 <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Reviewed-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions