summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpcihp_zt5550.c
diff options
context:
space:
mode:
authorQuentin Lambert2014-09-07 20:03:32 +0200
committerBjorn Helgaas2014-09-24 15:50:53 +0200
commit79e50e72986c9fcb06d707ce587cfd24fefa33e3 (patch)
tree1a21fd09d544924c1bc1417840a8569821820516 /drivers/pci/hotplug/cpcihp_zt5550.c
parentPCI: Remove unnecessary curly braces (diff)
downloadkernel-qcow2-linux-79e50e72986c9fcb06d707ce587cfd24fefa33e3.tar.gz
kernel-qcow2-linux-79e50e72986c9fcb06d707ce587cfd24fefa33e3.tar.xz
kernel-qcow2-linux-79e50e72986c9fcb06d707ce587cfd24fefa33e3.zip
PCI: Remove assignment from "if" conditions
The following Coccinelle semantic patch was used to find and correct cases of assignments in "if" conditions: @@ expression var, expr; statement S; @@ + var = expr; if( - (var = expr) + var ) S Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/cpcihp_zt5550.c')
-rw-r--r--drivers/pci/hotplug/cpcihp_zt5550.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/cpcihp_zt5550.c b/drivers/pci/hotplug/cpcihp_zt5550.c
index cfd01e93e137..7ecf34e76a61 100644
--- 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 */
- 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;
}