mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
Drop redundant test in vt1211_alias_detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5273 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
a5f4b32d17
commit
e165317220
1 file changed
-1
@@ -5545,7 +5545,6 @@ sub vt1211_alias_detect
|
||||
my ($chip, $isa_addr, $file, $i2c_addr) = @_;
|
||||
my $i;
|
||||
return 0 unless (inb($isa_addr + 0x48) & 0x7f) == $i2c_addr;
|
||||
return 0 unless (i2c_smbus_read_byte_data($file, 0x48) & 0x7f) == $i2c_addr;
|
||||
for ($i = 0x2b; $i <= 0x3d; $i ++) {
|
||||
return 0 unless inb($isa_addr + $i) == i2c_smbus_read_byte_data($file, $i);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user