> But I stumble on another unexpected test result.

I have tried a related tiny transformation approach out.

@renaming@
@@
-out
+exit
 :
 return ERR_PTR(...);


I got a diff hunk like the following then.

elfring@Sonne:~/Projekte/Linux/next-patched> spatch 
drivers/phy/tegra/xusb-tegra186.c 
~/Projekte/Coccinelle/janitor/rename_out_label1.cocci
…
warning: line 3: should out be a metavariable?
…
@@ -483,7 +483,7 @@ tegra186_usb2_pad_probe(struct tegra_xus

 unregister:
        device_unregister(&pad->dev);
-out:
+exit :
        return ERR_PTR(err);
 }
…


Should the addition of an extra space character usually be avoided
for such a jump label?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to