aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2014-02-15 08:36:11 +0100
committerGreg Kroah-Hartman <[email protected]>2014-02-15 12:32:55 -0800
commit4bb101d4f21be51e0f10ca71440e34858ce7b827 (patch)
tree21308d0893e6209a9f64135efbe91527ff481084 /include/linux
parentec97423afbd09c566fc3e756b4a6b50695dda0af (diff)
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions