2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-04 00:05:10 +00:00

0xffff isn't a valid I/O address either.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5940 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2011-03-12 13:27:30 +00:00
parent cae654385e
commit 249239b213

View File

@@ -3645,14 +3645,14 @@ sub probe_superio
outb($addrreg, $superio{actreg});
$val = inb($datareg);
if (!($val & $superio{actmask})) {
if ($addr) {
if ($addr && $addr != 0xffff) {
printf "\n (address 0x\%x, but not activated)\n", $addr;
} else {
print "\n (but not activated)\n";
}
return 0;
}
if ($addr == 0) {
if ($addr == 0 || $addr == 0xffff) {
print "\n (but no address specified)\n";
return 0;
}