summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2018-01-27 19:23:36 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-01-29 23:06:39 +0900
commit25899e02819944ffe7cbbf9b3350cb33beb90865 (patch)
tree6ebe4c89b7618e025ca5eb1879844a4ddbe74024
parent1936f8f30066cd608d1cee5807a2adf380dda718 (diff)
Coccinelle: memdup: drop spurious line
The kmemdup line in the non-patch case was left over from the added kmemdup line in the patch case. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--scripts/coccinelle/api/memdup.cocci1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/coccinelle/api/memdup.cocci b/scripts/coccinelle/api/memdup.cocci
index 3d1aa71b7579..1249b727644b 100644
--- a/scripts/coccinelle/api/memdup.cocci
+++ b/scripts/coccinelle/api/memdup.cocci
@@ -49,7 +49,6 @@ statement S;
@@
* to = \(kmalloc@p\|kzalloc@p\)(size,flag);
- to = kmemdup(from,size,flag);
if (to==NULL || ...) S
* memcpy(to, from, size);