1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 17:23:25 -05:00

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>
This commit is contained in:
Julia Lawall 2018-01-27 19:23:36 +01:00 committed by Masahiro Yamada
parent 1936f8f300
commit 25899e0281

View file

@ -49,7 +49,6 @@ statement S;
@@ @@
* to = \(kmalloc@p\|kzalloc@p\)(size,flag); * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
to = kmemdup(from,size,flag);
if (to==NULL || ...) S if (to==NULL || ...) S
* memcpy(to, from, size); * memcpy(to, from, size);