Re: [PATCH 3/3] caif: delete unnecessary field initialization

2014-02-16 Thread David Miller
From: Julia Lawall 
Date: Sat, 15 Feb 2014 08:36:13 +0100

> From: Julia Lawall 
> 
> On success, the function netdev_alloc_skb initializes the dev field of its
> result to its first argument, so this doesn't have to be done in the
> calling context.
> 
> The semantic patch that fixes this problem is as follows:
> (http://coccinelle.lip6.fr/)
> 
> // 
> @@
> expression skb,privn,e;
> @@
> 
> skb = netdev_alloc_skb(privn,...);
> ... when strict
> (
> -skb->dev = privn;
> |
> ?skb = e
> )
> // 
> 
> Signed-off-by: Julia Lawall 

Applied to net-next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] caif: delete unnecessary field initialization

2014-02-16 Thread David Miller
From: Julia Lawall julia.law...@lip6.fr
Date: Sat, 15 Feb 2014 08:36:13 +0100

 From: Julia Lawall julia.law...@lip6.fr
 
 On success, the function netdev_alloc_skb initializes the dev field of its
 result to its first argument, so this doesn't have to be done in the
 calling context.
 
 The semantic patch that fixes this problem is as follows:
 (http://coccinelle.lip6.fr/)
 
 // smpl
 @@
 expression skb,privn,e;
 @@
 
 skb = netdev_alloc_skb(privn,...);
 ... when strict
 (
 -skb-dev = privn;
 |
 ?skb = e
 )
 // /smpl
 
 Signed-off-by: Julia Lawall julia.law...@lip6.fr

Applied to net-next, thanks.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/