mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-05 16:55:45 +00:00
Remove dead code in PCI adapter detection loop.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3198 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -2169,15 +2169,11 @@ sub adapter_pci_detection
|
||||
# Generic detection loop
|
||||
while ( ($key, $device) = each %pci_list) {
|
||||
foreach $try (@pci_adapters) {
|
||||
if ((defined($device->{vendid}) and
|
||||
$try->{vendid} == $device->{vendid} and
|
||||
$try->{devid} == $device->{devid} and
|
||||
$try->{func} == $device->{func}) or
|
||||
(! defined($device->{vendid}) and
|
||||
$device->{desc} =~ /$try->{procid}/ and
|
||||
$try->{func} == $device->{func})) {
|
||||
if ($try->{vendid} == $device->{vendid} &&
|
||||
$try->{devid} == $device->{devid} &&
|
||||
$try->{func} == $device->{func}) {
|
||||
printf "Use driver `%s' for device %02x:%02x.%x: %s\n",
|
||||
$try->{driver}?$try->{driver}:"<To Be Written>",
|
||||
$try->{driver},
|
||||
$device->{bus},$device->{slot},$device->{func},$try->{procid};
|
||||
push @res,$try->{driver};
|
||||
}
|
||||
|
Reference in New Issue
Block a user