Coccinelle: memdup: drop spurious line
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 27 Jan 2018 18:23:36 +0000 (19:23 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 29 Jan 2018 14:06:39 +0000 (23:06 +0900)
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>
scripts/coccinelle/api/memdup.cocci

index 3d1aa71b757913c31a9375be94a9d13516c658c3..1249b727644b742db1c215eda9691e3d5e69d877 100644 (file)
@@ -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);