Re: [PATCH] Coccinelle: memdup: drop spurious line

2018-01-29 Thread Masahiro Yamada
2018-01-28 3:23 GMT+09:00 Julia Lawall :
> 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 
>
> ---
>  scripts/coccinelle/api/memdup.cocci |1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/scripts/coccinelle/api/memdup.cocci 
> b/scripts/coccinelle/api/memdup.cocci
> index 3d1aa71..1249b72 100644
> --- a/scripts/coccinelle/api/memdup.cocci
> +++ b/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);
>
>

Applied to linux-kbuild/misc.  Thanks!



-- 
Best Regards
Masahiro Yamada


Re: [PATCH] Coccinelle: memdup: drop spurious line

2018-01-29 Thread Masahiro Yamada
2018-01-28 3:23 GMT+09:00 Julia Lawall :
> 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 
>
> ---
>  scripts/coccinelle/api/memdup.cocci |1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/scripts/coccinelle/api/memdup.cocci 
> b/scripts/coccinelle/api/memdup.cocci
> index 3d1aa71..1249b72 100644
> --- a/scripts/coccinelle/api/memdup.cocci
> +++ b/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);
>
>

Applied to linux-kbuild/misc.  Thanks!



-- 
Best Regards
Masahiro Yamada


[PATCH] Coccinelle: memdup: drop spurious line

2018-01-27 Thread Julia Lawall
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 

---
 scripts/coccinelle/api/memdup.cocci |1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/coccinelle/api/memdup.cocci 
b/scripts/coccinelle/api/memdup.cocci
index 3d1aa71..1249b72 100644
--- a/scripts/coccinelle/api/memdup.cocci
+++ b/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);
 



[PATCH] Coccinelle: memdup: drop spurious line

2018-01-27 Thread Julia Lawall
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 

---
 scripts/coccinelle/api/memdup.cocci |1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/coccinelle/api/memdup.cocci 
b/scripts/coccinelle/api/memdup.cocci
index 3d1aa71..1249b72 100644
--- a/scripts/coccinelle/api/memdup.cocci
+++ b/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);