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 ++-
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
2 matches
Mail list logo