Tag: 79e50e72986c9fcb06d707ce587cfd24fefa33e3

PCI: Remove assignment from “if” conditions

Author: Quentin Lambert <lambert.quentin@gmail.com> 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 Signed-off-by: Bjorn Helgaas — drivers/pci/hotplug/acpi_pcihp.c | 3 ++- drivers/pci/hotplug/cpci_hotplug_core.c | 9 …

Continue reading