PCI: Remove assignment from "if" conditions
[deliverable/linux.git] / drivers / pci / hotplug / cpcihp_zt5550.c
index cfd01e93e1375196b1622de1477909fd5a897c76..7ecf34e76a61eb73ebe6418eb4b1f904a997a90f 100644 (file)
@@ -237,8 +237,9 @@ static int zt5550_hc_init_one (struct pci_dev *pdev, const struct pci_device_id
        dbg("registered controller");
 
        /* Look for first device matching cPCI bus's bridge vendor and device IDs */
-       if (!(bus0_dev = pci_get_device(PCI_VENDOR_ID_DEC,
-                                        PCI_DEVICE_ID_DEC_21154, NULL))) {
+       bus0_dev = pci_get_device(PCI_VENDOR_ID_DEC,
+                                 PCI_DEVICE_ID_DEC_21154, NULL);
+       if (!bus0_dev) {
                status = -ENODEV;
                goto init_register_error;
        }
This page took 0.024289 seconds and 5 git commands to generate.