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
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