From 6f171bfde29d9ae18e6c94039380fc00948aac31 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Wed, 1 Feb 2017 21:52:02 -0500 Subject: [PATCH] wmgtemp: Remove unused variable 'chipname' --- wmgtemp/src/wmgtemp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wmgtemp/src/wmgtemp.c b/wmgtemp/src/wmgtemp.c index 6951f13..6965a08 100644 --- a/wmgtemp/src/wmgtemp.c +++ b/wmgtemp/src/wmgtemp.c @@ -117,7 +117,6 @@ char *sensor_chip = NULL; short quiet = 0; int main(int argc, char **argv) { - char *chipname = NULL; int chip_nr = 0; int i = 0; int tmp_swap; @@ -162,10 +161,7 @@ int main(int argc, char **argv) { } } - if(chip_found == 1) { - chipname = name->prefix; - } - else { + if(chip_found == -1) { name = sensors_get_detected_chips(NULL, &chip_nr); } }