Changeset 3198

Show
Ignore:
Timestamp:
11/20/05 20:25:28 (9 years ago)
Author:
khali
Message:

Remove dead code in PCI adapter detection loop.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r3197 r3198  
    21702170  while ( ($key, $device) = each %pci_list) { 
    21712171    foreach $try (@pci_adapters) { 
    2172       if ((defined($device->{vendid}) and  
    2173            $try->{vendid} == $device->{vendid} and 
    2174            $try->{devid} == $device->{devid} and 
    2175            $try->{func} == $device->{func}) or 
    2176           (! defined($device->{vendid}) and 
    2177            $device->{desc} =~ /$try->{procid}/ and 
    2178            $try->{func} == $device->{func})) { 
     2172      if ($try->{vendid} == $device->{vendid} && 
     2173          $try->{devid} == $device->{devid} && 
     2174          $try->{func} == $device->{func}) { 
    21792175        printf "Use driver `%s' for device %02x:%02x.%x: %s\n", 
    2180                $try->{driver}?$try->{driver}:"<To Be Written>", 
     2176               $try->{driver}, 
    21812177               $device->{bus},$device->{slot},$device->{func},$try->{procid}; 
    21822178        push @res,$try->{driver};