hwmon: (applesmc) Silence uninitialized warnings
authorHenrik Rydberg <rydberg@euromail.se>
Thu, 26 Jan 2012 11:08:41 +0000 (06:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:00:40 +0000 (07:00 -0700)
commit96ec909de79e2cc422126fdeb427fe8d0ffb4b95
treefad446e50d7ffeac7a601ed55093307ce0279119
parent94c7268325e30ecb4767b9c080e8cec9c92d6689
hwmon: (applesmc) Silence uninitialized warnings

commit 0fc86eca1b338d06ec500b34ef7def79c32b602b upstream.

Some error paths do not set a result, leading to the (false)
assumption that the value may be used uninitialized. Set results for
those paths as well.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/applesmc.c