PCI: Remove assignment from "if" conditions
authorQuentin Lambert <lambert.quentin@gmail.com>
Sun, 7 Sep 2014 18:03:32 +0000 (20:03 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 24 Sep 2014 13:50:53 +0000 (07:50 -0600)
commit79e50e72986c9fcb06d707ce587cfd24fefa33e3
tree1a21fd09d544924c1bc1417840a8569821820516
parent656f978f9af9d8d77436e8159f51f7aa1e673309
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>
drivers/pci/hotplug/acpi_pcihp.c
drivers/pci/hotplug/cpci_hotplug_core.c
drivers/pci/hotplug/cpcihp_zt5550.c
drivers/pci/hotplug/ibmphp_core.c
drivers/pci/hotplug/ibmphp_pci.c
drivers/pci/hotplug/ibmphp_res.c
drivers/pci/hotplug/shpchp_ctrl.c
drivers/pci/hotplug/shpchp_hpc.c
drivers/pci/pci.c
This page took 0.026075 seconds and 5 git commands to generate.