From 66fe01e8a82c7923a337d9bb5e97690d8e59dfc2 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 30 Nov 2008 10:29:22 +0000 Subject: [PATCH] Drop unused function swap_bytes(). git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5466 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 056d0310..aaa7a16e 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1708,11 +1708,6 @@ use vars qw(@cpu_ids); # AUXILIARY FUNCTIONS # ####################### -sub swap_bytes -{ - return (($_[0] & 0xff00) >> 8) + (($_[0] & 0x00ff) << 8) -} - # $_[0] is the sought value # @_[1..] is the list to seek in # Returns: 0 on failure, 1 if found. @@ -2378,8 +2373,7 @@ sub i2c_smbus_read_byte_data # so you should do as much of the detection as possible using byte reads, # and only start using word reads when there is a good chance that # the detection will succeed. -# Note: some devices use the wrong endiannes; use swap_bytes to correct for -# this. +# Note: some devices use the wrong endianness. sub i2c_smbus_read_word_data { my ($file, $command) = @_;