diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-08-16 17:15:26 +0200 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-08-22 23:04:05 +0200 |
commit | 858a914324c7786f483661e3a89bc8fbe50f1b9d (patch) | |
tree | 47e3d189b00103c44e0f2d10fe758861367dec8c /drivers/hwmon/i5k_amb.c | |
parent | Linux 3.1-rc3 (diff) | |
download | linux-858a914324c7786f483661e3a89bc8fbe50f1b9d.tar.xz linux-858a914324c7786f483661e3a89bc8fbe50f1b9d.zip |
hwmon: (ntc_thermistor) Simplify if sequence
Replace unnecessary if with else statement.
This fixes the following (false) compile warning reported with some combinations
of C compiler version and configuration.
drivers/hwmon/ntc_thermistor.c: In function 'ntc_show_temp':
drivers/hwmon/ntc_thermistor.c:225: warning: 'low' may be used uninitialized in
this function
drivers/hwmon/ntc_thermistor.c:225: note: 'low' was declared here
drivers/hwmon/ntc_thermistor.c:225: warning: 'high' may be used uninitialized in
this function
drivers/hwmon/ntc_thermistor.c:225: note: 'high' was declared here
drivers/hwmon/ntc_thermistor.c:294: warning: 'temp' may be used uninitialized in
this function
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/i5k_amb.c')
0 files changed, 0 insertions, 0 deletions