[PATCH 08/10] wmgtemp: Remove unused variable 'chipname'

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 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 [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.