summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorJulia Lawall2014-02-15 08:36:13 +0100
committerDavid S. Miller2014-02-17 06:29:23 +0100
commit327cdedaf6e6334aeb219df5a68da5e6906ee72e (patch)
tree514507e065bac849db1e7838cdde456ef9f7c514 /drivers/net/ieee802154
parentDocumentation: broadcom-bcmgenet: add better clocks documentation (diff)
downloadkernel-qcow2-linux-327cdedaf6e6334aeb219df5a68da5e6906ee72e.tar.gz
kernel-qcow2-linux-327cdedaf6e6334aeb219df5a68da5e6906ee72e.tar.xz
kernel-qcow2-linux-327cdedaf6e6334aeb219df5a68da5e6906ee72e.zip
caif: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ieee802154')
0 files changed, 0 insertions, 0 deletions