|
|
a0074b |
From 40aa494c026c67f089a4a84c600114473e9d7787 Mon Sep 17 00:00:00 2001
|
|
|
a0074b |
From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek@redhat.com>
|
|
|
a0074b |
Date: Mon, 7 May 2018 13:37:26 +0200
|
|
|
a0074b |
Subject: [PATCH] Remove superfluous call to get_input_value()
|
|
|
a0074b |
MIME-Version: 1.0
|
|
|
a0074b |
Content-Type: text/plain; charset=UTF-8
|
|
|
a0074b |
Content-Transfer-Encoding: 8bit
|
|
|
a0074b |
|
|
|
a0074b |
It is already called in the line above.
|
|
|
a0074b |
Discovered thanks to a Coverity Scan warning.
|
|
|
a0074b |
|
|
|
a0074b |
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
|
|
|
a0074b |
---
|
|
|
a0074b |
prog/sensors/chips.c | 1 -
|
|
|
a0074b |
1 file changed, 1 deletion(-)
|
|
|
a0074b |
|
|
|
a0074b |
diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c
|
|
|
a0074b |
index 01c08fa8..99df8264 100644
|
|
|
a0074b |
--- a/prog/sensors/chips.c
|
|
|
a0074b |
+++ b/prog/sensors/chips.c
|
|
|
a0074b |
@@ -364,7 +364,6 @@ static void print_chip_temp(const sensors_chip_name *name,
|
|
|
a0074b |
sf = sensors_get_subfeature(name, feature,
|
|
|
a0074b |
SENSORS_SUBFEATURE_TEMP_INPUT);
|
|
|
a0074b |
if (sf && get_input_value(name, sf, &val) == 0) {
|
|
|
a0074b |
- get_input_value(name, sf, &val;;
|
|
|
a0074b |
if (fahrenheit)
|
|
|
a0074b |
val = deg_ctof(val);
|
|
|
a0074b |
printf("%+6.1f%s ", val, degstr);
|
|
|
a0074b |
--
|
|
|
a0074b |
2.14.3
|
|
|
a0074b |
|