From: Himangi Saraogi Date: Sat, 2 Aug 2014 22:11:35 +0000 (+0530) Subject: HID: hid-sensor-hub: use devm_ functions consistently X-Git-Tag: omap-for-v3.17/fixes-against-rc2~28^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5be5db24fc0883d9e38df378c1de9a00f8933999;p=pandora-kernel.git 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: // @@ @@ *devm_kzalloc(...) ... *kzalloc(...) // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Reviewed-by: Srinivas Pandruvada Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed