Browse Source

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>
Julia Lawall 7 years ago
parent
commit
25899e0281
1 changed files with 0 additions and 1 deletions
  1. 0 1
      scripts/coccinelle/api/memdup.cocci

+ 0 - 1
scripts/coccinelle/api/memdup.cocci

@@ -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);