---
 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);
     }
   }
-- 
2.7.4


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to