summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-02-15 11:36:11 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-16 00:32:55 +0400
commit4bb101d4f21be51e0f10ca71440e34858ce7b827 (patch)
tree21308d0893e6209a9f64135efbe91527ff481084 /include
parentec97423afbd09c566fc3e756b4a6b50695dda0af (diff)
downloadlinux-4bb101d4f21be51e0f10ca71440e34858ce7b827.tar.xz
staging: r8712u: delete unnecessary field initialization
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.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions