Skip to content

Commit 25899e0

Browse files
JuliaLawallmasahir0y
authored andcommitted
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>
1 parent 1936f8f commit 25899e0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎scripts/coccinelle/api/memdup.cocci‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ statement S;
4949
@@
5050

5151
* to = \(kmalloc@p\|kzalloc@p\)(size,flag);
52-
to = kmemdup(from,size,flag);
5352
if (to==NULL || ...) S
5453
* memcpy(to, from, size);
5554

0 commit comments

Comments
 (0)