Skip to content

Commit

Permalink
Coccinelle: memdup: drop spurious line
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Masahiro Yamada committed Jan 29, 2018
1 parent 1936f8f commit 25899e0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/coccinelle/api/memdup.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 25899e0

Please sign in to comment.