wmgtemp: Remove unused variable 'chipname'

This commit is contained in:
Doug Torrance 2017-02-01 21:52:02 -05:00 committed by Carlos R. Mafra
parent df04a1b4d5
commit 6f171bfde2

View file

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