Changeset 5429

Show
Ignore:
Timestamp:
11/24/08 18:28:25 (5 years ago)
Author:
khali
Message:

Drop useless parentheses.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5428 r5429  
    33663366  my ($file, $addr) = @_; 
    33673367  return if i2c_smbus_read_byte_data($file, 0x58) != 0xac; 
    3368   return (3); 
     3368  return 3; 
    33693369} 
    33703370 
     
    33883388  return if $reg == 0xa3 || $reg == 0x5c; 
    33893389 
    3390   return (6); 
     3390  return 6; 
    33913391} 
    33923392 
     
    41894189  if ($vendor == 0x41) { # Analog Devices 
    41904190    return if i2c_smbus_read_byte_data($file, 0x3d) != 0x27; 
    4191     return (8); 
    4192   } 
    4193  
    4194   return (7); 
     4191    return 8; 
     4192  } 
     4193 
     4194  return 7; 
    41954195} 
    41964196 
     
    42184218  return if ($cfg & 0x80) != 0x00; 
    42194219 
    4220   return (7); 
     4220  return 7; 
    42214221} 
    42224222 
     
    43784378  $reg = i2c_smbus_read_byte_data($file, 0x01); 
    43794379  return unless $reg == 0x00 or $reg == 0x80; 
    4380   return (6); 
     4380  return 6; 
    43814381} 
    43824382 
     
    43904390  return unless i2c_smbus_read_byte_data($file, 0x00) == 0x25; 
    43914391  return unless (i2c_smbus_read_byte_data($file, 0x03) & 0x80) == 0x00; 
    4392   return (5); 
     4392  return 5; 
    43934393} 
    43944394 
     
    44094409  return unless i2c_smbus_read_byte_data($file, 0x48) == $addr; 
    44104410 
    4411   return (7); 
     4411  return 7; 
    44124412} 
    44134413 
     
    44344434                ($chip == 2 and $reg == 0xd0) or 
    44354435                ($chip == 3 and $reg == 0xd0); 
    4436   return (8); 
     4436  return 8; 
    44374437} 
    44384438 
     
    44584458  return unless (i2c_smbus_read_byte_data($file, 0x3f) & 0xf0) == 0x20; 
    44594459 
    4460   return (8); 
     4460  return 8; 
    44614461} 
    44624462 
     
    44714471  return unless ($reg == 0x41); 
    44724472  return unless (i2c_smbus_read_byte_data($file, 0x17) & 0xf0) == 0x40; 
    4473   return (8); 
     4473  return 8; 
    44744474} 
    44754475 
     
    46294629  return unless i2c_smbus_read_byte_data($file, 0x58) == 0x90; 
    46304630  return if i2c_smbus_read_byte_data($file, 0x5b) != 0x12; 
    4631   return (7 + ($addr == 0x2d)); 
     4631  return 7 + ($addr == 0x2d); 
    46324632} 
    46334633 
     
    46904690  return if $chip == 5 and $id ne 'HRC';  # Heracles 
    46914691 
    4692   return (8); 
     4692  return 8; 
    46934693} 
    46944694 
     
    47274727       and (i2c_smbus_read_byte_data($file, 0x58) & 0xEF) == 0; 
    47284728 
    4729   return (7); 
     4729  return 7; 
    47304730} 
    47314731 
     
    48184818         || i2c_smbus_read_word_data($file, 0x09) == 0xffff 
    48194819         || i2c_smbus_read_word_data($file, 0x0a) == 0xffff; 
    4820   return (5); 
     4820  return 5; 
    48214821} 
    48224822