From ead02dff6858655795a675d0070ef11711440570 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 30 Nov 2008 12:42:41 +0000 Subject: [PATCH] Simplify adapter_pci_detection_sis_96x. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5469 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index c774b6bd..675846b9 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2163,22 +2163,14 @@ sub initialize_pci # ADAPTER DETECTION # ##################### +# Not sure if we still need this for Linux 2.6? sub adapter_pci_detection_sis_96x { - my $driver = ""; - - # first, determine which driver if any... + # Add the appropriate entries to @pci_adapters if (exists $pci_list{'1039:0016'}) { - $driver = "i2c-sis96x"; - } elsif (exists $pci_list{'1039:0008'}) { - $driver = "i2c-sis5595"; - } - - # then, add the appropriate entries to @pci_adapters - if ($driver eq "i2c-sis5595") { - push @pci_adapters, @pci_adapters_sis5595; - } elsif ($driver eq "i2c-sis96x") { push @pci_adapters, @pci_adapters_sis96x; + } elsif (exists $pci_list{'1039:0008'}) { + push @pci_adapters, @pci_adapters_sis5595; } }