]> xenbits.xensource.com Git - seabios.git/commitdiff
megasas: Invert PCI device selection
authorHannes Reinecke <hare@suse.de>
Wed, 19 Dec 2012 14:12:47 +0000 (15:12 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 9 Jan 2013 03:45:26 +0000 (22:45 -0500)
Stupid typo from my side ...

Signed-off-by: Hannes Reinecke <hare@suse.de>
src/megasas.c

index f710cd7a85f9821c876528b888b3ac67e838b095..3ccdd0a751f11f7a8a51f514e214508fb984685b 100644 (file)
@@ -382,18 +382,17 @@ megasas_setup(void)
         if (pci->vendor != PCI_VENDOR_ID_LSI_LOGIC &&
             pci->vendor != PCI_VENDOR_ID_DELL)
             continue;
-        if (pci->device != PCI_DEVICE_ID_LSI_SAS1064R ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS1078 ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS1078DE ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS2108 ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS2108E ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS2004 ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS2008 ||
-            pci->device != PCI_DEVICE_ID_LSI_VERDE_ZCR ||
-            pci->device != PCI_DEVICE_ID_DELL_PERC5 ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS2208 ||
-            pci->device != PCI_DEVICE_ID_LSI_SAS3108)
-            continue;
-        init_megasas(pci);
+        if (pci->device == PCI_DEVICE_ID_LSI_SAS1064R ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS1078 ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS1078DE ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS2108 ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS2108E ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS2004 ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS2008 ||
+            pci->device == PCI_DEVICE_ID_LSI_VERDE_ZCR ||
+            pci->device == PCI_DEVICE_ID_DELL_PERC5 ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS2208 ||
+            pci->device == PCI_DEVICE_ID_LSI_SAS3108)
+            init_megasas(pci);
     }
 }