From e955d2cd6eeca792d217f937a0e6dc03a2b037fb Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 30 Nov 2008 13:10:09 +0000 Subject: [PATCH] Minor clean-up in i2c_probe. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5472 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 35a2aa88..01bec8ec 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2391,7 +2391,6 @@ sub i2c_smbus_read_word_data sub i2c_probe { my ($file, $addr, $funcs) = @_; - my $data = []; if (($addr >= 0x50 && $addr <= 0x5F) || ($addr >= 0x30 && $addr <= 0x37)) { @@ -2402,10 +2401,10 @@ sub i2c_probe # themselves permanently on almost any write to their page # protection address. return 0 unless ($funcs & I2C_FUNC_SMBUS_READ_BYTE); - return i2c_smbus_access($file, SMBUS_READ, 0, SMBUS_BYTE, $data); + return i2c_smbus_access($file, SMBUS_READ, 0, SMBUS_BYTE, []); } else { return 0 unless ($funcs & I2C_FUNC_SMBUS_QUICK); - return i2c_smbus_access($file, SMBUS_WRITE, 0, SMBUS_QUICK, $data); + return i2c_smbus_access($file, SMBUS_WRITE, 0, SMBUS_QUICK, []); } }