projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PCI: Remove assignment from "if" conditions
[deliverable/linux.git]
/
drivers
/
pci
/
hotplug
/
cpcihp_zt5550.c
diff --git
a/drivers/pci/hotplug/cpcihp_zt5550.c
b/drivers/pci/hotplug/cpcihp_zt5550.c
index cfd01e93e1375196b1622de1477909fd5a897c76..7ecf34e76a61eb73ebe6418eb4b1f904a997a90f 100644
(file)
--- a/
drivers/pci/hotplug/cpcihp_zt5550.c
+++ b/
drivers/pci/hotplug/cpcihp_zt5550.c
@@
-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 */
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;
}
status = -ENODEV;
goto init_register_error;
}
This page took
0.027387 seconds
and
5
git commands to generate.