]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/coccinelle/locks/mini_lock.cocci
coccinelle: mini_lock: improve performance
[linux.git] / scripts / coccinelle / locks / mini_lock.cocci
index 47f649b0ea876593353ed045657b2632f17beb72..19c6ee5b986b2019d128142dbfb6ec0f84505000 100644 (file)
@@ -67,12 +67,14 @@ identifier lock,unlock;
 @@
 
 *lock(E1@p,...);
-<+... when != E1
+... when != E1
+    when any
 if (...) {
   ... when != E1
 *  return@r ...;
 }
-...+>
+... when != E1
+    when any
 *unlock@up(E1,...);
 
 @script:python depends on org@