]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (twl4030-madc-hwmon) Initialize uninitialized structure elements
authorGuenter Roeck <linux@roeck-us.net>
Tue, 19 Jun 2012 15:00:00 +0000 (08:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:11 +0000 (10:39 -0700)
commitbc080eed5c61471ab1204b70bf7efe22c5181087
tree41a9d94128fe19f82779f1a9fc98451285de61b9
parent1a63a2a60287396a16c43c844913f59e01e9e0ce
hwmon: (twl4030-madc-hwmon) Initialize uninitialized structure elements

commit 73d7c119255615a26070f9d6cdb722a166a29015 upstream.

twl4030_madc_conversion uses do_avg and type structure elements of
twl4030_madc_request. Initialize structure to avoid random operation.

Fix for: Coverity CID 200794 Uninitialized scalar variable.

Cc: Keerthy <j-keerthy@ti.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/twl4030-madc-hwmon.c