mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-18 19:30:54 +00:00
Remove superfluous call to get_input_value()
It is already called in the line above. Discovered thanks to a Coverity Scan warning. Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
1 parent
3b548b74ae
commit
40aa494c02
1 file changed
-1
@@ -364,7 +364,6 @@ static void print_chip_temp(const sensors_chip_name *name,
|
|||||||
sf = sensors_get_subfeature(name, feature,
|
sf = sensors_get_subfeature(name, feature,
|
||||||
SENSORS_SUBFEATURE_TEMP_INPUT);
|
SENSORS_SUBFEATURE_TEMP_INPUT);
|
||||||
if (sf && get_input_value(name, sf, &val) == 0) {
|
if (sf && get_input_value(name, sf, &val) == 0) {
|
||||||
get_input_value(name, sf, &val);
|
|
||||||
if (fahrenheit)
|
if (fahrenheit)
|
||||||
val = deg_ctof(val);
|
val = deg_ctof(val);
|
||||||
printf("%+6.1f%s ", val, degstr);
|
printf("%+6.1f%s ", val, degstr);
|
||||||
|
|||||||
Reference in new issue
Block a user