wmgtemp: Remove unused variable 'chipname'
This commit is contained in:
parent
df04a1b4d5
commit
6f171bfde2
1 changed files with 1 additions and 5 deletions
|
@ -117,7 +117,6 @@ char *sensor_chip = NULL;
|
||||||
short quiet = 0;
|
short quiet = 0;
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
char *chipname = NULL;
|
|
||||||
int chip_nr = 0;
|
int chip_nr = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int tmp_swap;
|
int tmp_swap;
|
||||||
|
@ -162,10 +161,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(chip_found == 1) {
|
if(chip_found == -1) {
|
||||||
chipname = name->prefix;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
name = sensors_get_detected_chips(NULL, &chip_nr);
|
name = sensors_get_detected_chips(NULL, &chip_nr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue