summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle
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 15:06:39 +0100
commit25899e02819944ffe7cbbf9b3350cb33beb90865 (patch)
tree6ebe4c89b7618e025ca5eb1879844a4ddbe74024 /scripts/coccinelle
parentCoccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple (diff)
downloadlinux-25899e02819944ffe7cbbf9b3350cb33beb90865.tar.xz
linux-25899e02819944ffe7cbbf9b3350cb33beb90865.zip
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>
Diffstat (limited to 'scripts/coccinelle')
-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);