diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-01-27 13:23:36 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-01-29 09:06:39 -0500 |
commit | 25899e02819944ffe7cbbf9b3350cb33beb90865 (patch) | |
tree | 6ebe4c89b7618e025ca5eb1879844a4ddbe74024 | |
parent | 1936f8f30066cd608d1cee5807a2adf380dda718 (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.cocci | 1 |
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; | |||
49 | @@ | 49 | @@ |
50 | 50 | ||
51 | * to = \(kmalloc@p\|kzalloc@p\)(size,flag); | 51 | * to = \(kmalloc@p\|kzalloc@p\)(size,flag); |
52 | to = kmemdup(from,size,flag); | ||
53 | if (to==NULL || ...) S | 52 | if (to==NULL || ...) S |
54 | * memcpy(to, from, size); | 53 | * memcpy(to, from, size); |
55 | 54 | ||