History

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.

Julia Lawall committed 8 years ago

Commit 25899e01 parent 1936f8f1 file · +0 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/coccinelle/api/memdup.cocci+0−1
@@ -49,7 +49,6 @@ statement S; · 48 unmodified lines
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 || ...) S52 if (to==NULL || ...) S
54* memcpy(to, from, size);53* memcpy(to, from, size);
55 54