From e165317220e399cb171456508caac2a40f3d3ecb Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 7 Jun 2008 18:32:03 +0000 Subject: [PATCH] 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 --- prog/detect/sensors-detect | 1 - 1 file changed, 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index e6234258..027eb365 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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); }