From 7717ea57c6c1748389184c95f6fc77ebae010223 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 27 Mar 2005 23:10:52 +0000 Subject: [PATCH] return undef instead of 0 in vt1211 i2c detect. found by Khali. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2958 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 34c8ff3b..c8219813 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -4694,8 +4694,8 @@ sub max6650_detect sub vt1211_i2c_detect { my ($chip,$file,$addr) = @_; - return 0 unless (i2c_smbus_read_byte_data($file,0x48) & 0x7f) == $addr; - return 0 unless i2c_smbus_read_byte_data($file,0x3f) == 0xb0; + return unless (i2c_smbus_read_byte_data($file,0x48) & 0x7f) == $addr; + return unless i2c_smbus_read_byte_data($file,0x3f) == 0xb0; return 2; }