]> git.karo-electronics.de Git - linux-beck.git/commit
hwmon: (jc42) Convert to use devm_kzalloc
authorGuenter Roeck <linux@roeck-us.net>
Wed, 22 Feb 2012 16:56:47 +0000 (08:56 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:27:48 +0000 (18:27 -0700)
commitf15df57ded710bd018794a264b900975ce3599a0
treeca1b652e423860d7d01eca040af4ccdd94b5c73d
parent918ddef35f518407d6ed6e72faf6df75e49cee24
hwmon: (jc42) Convert to use devm_kzalloc

Marginally less code and eliminate the possibility of memory leaks.
Also replace new_client variable with client and introduce dev variable to make
the code a bit easier to read.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/jc42.c