Blame SOURCES/0001-Remove-superfluous-call-to-get_input_value.patch

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