mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-11 16:40:16 +00:00
Clean-up scan_superio.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5505 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
697dd4f4ec
commit
1b15b90fca
1 file changed
+4
-7
@@ -2993,7 +2993,6 @@ sub scan_superio
|
||||
$| = 1;
|
||||
# reset state to avoid false positives
|
||||
exit_superio($addrreg, $datareg);
|
||||
FAMILY:
|
||||
foreach my $family (@superio_ids) {
|
||||
printf("\%-60s", "Trying family `$family->{family}'... ");
|
||||
# write the password
|
||||
@@ -3003,8 +3002,7 @@ sub scan_superio
|
||||
# call the non-standard detection routine first if it exists
|
||||
if (defined($family->{ns_detect}) &&
|
||||
&{$family->{ns_detect}}($addrreg, $datareg, $family->{ns_chips})) {
|
||||
exit_superio($addrreg, $datareg);
|
||||
last FAMILY;
|
||||
last;
|
||||
}
|
||||
|
||||
# did it work?
|
||||
@@ -3014,7 +3012,7 @@ sub scan_superio
|
||||
$val = ($val << 8) | inb($datareg);
|
||||
if ($val == 0x0000 || $val == 0xffff) {
|
||||
print "No\n";
|
||||
next FAMILY;
|
||||
next;
|
||||
}
|
||||
print "Yes\n";
|
||||
|
||||
@@ -3035,10 +3033,9 @@ sub scan_superio
|
||||
guess_superio_ld($addrreg, $datareg, $family->{guess})
|
||||
if defined $family->{guess};
|
||||
}
|
||||
|
||||
exit_superio($addrreg, $datareg);
|
||||
last FAMILY;
|
||||
last;
|
||||
}
|
||||
exit_superio($addrreg, $datareg);
|
||||
$| = 0;
|
||||
return $added;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user