[PATCH v2 3/4] PCI: remove assignement from if conditions

2014-09-07 Thread Quentin Lambert
The following Coccinelle semantic patch was used to find and correct cases of assignements in if conditions: @@ expression var, expr; statement S; @@ + var = expr; if( - (var = expr) + var ) S Signed-off-by: Quentin Lambert --- drivers/pci/hotplug/acpi_pcihp.c| 3 ++-

[PATCH v2 3/4] PCI: remove assignement from if conditions

2014-09-07 Thread Quentin Lambert
The following Coccinelle semantic patch was used to find and correct cases of assignements in if conditions: @@ expression var, expr; statement S; @@ + var = expr; if( - (var = expr) + var ) S Signed-off-by: Quentin Lambert lambert.quen...@gmail.com --- drivers/pci/hotplug/acpi_pcihp.c