summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/coccinelle/misc/minmax.cocci8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/coccinelle/misc/minmax.cocci b/scripts/coccinelle/misc/minmax.cocci
index 93c074b9439f..905dd2292609 100644
--- a/scripts/coccinelle/misc/minmax.cocci
+++ b/scripts/coccinelle/misc/minmax.cocci
@@ -22,14 +22,14 @@ expression E1, E2, E3, E4;
binary operator cmp = {>, >=};
@@
- (E1 cmp E2 ? E3 : E4)
+ E1 cmp E2 ? E3 : E4
@min_candidate@
expression E1, E2, E3, E4;
binary operator cmp = {<, <=};
@@
- (E1 cmp E2 ? E3 : E4)
+ E1 cmp E2 ? E3 : E4
@rmax depends on !patch && max_candidate@
identifier func;
@@ -41,7 +41,7 @@ position p;
func(...)
{
<...
-* ((x) cmp@p (y) ? (x) : (y))
+* (x) cmp@p (y) ? (x) : (y)
...>
}
@@ -89,7 +89,7 @@ position p != errcode.p;
func(...)
{
<...
-* ((x) cmp@p (y) ? (x) : (y))
+* (x) cmp@p (y) ? (x) : (y)
...>
}