From: Julia Lawall Date: Sat, 15 Feb 2014 07:36:13 +0000 (+0100) Subject: caif: delete unnecessary field initialization X-Git-Tag: v3.15-rc1~113^2~334 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=327cdedaf6e6334aeb219df5a68da5e6906ee72e;p=pandora-kernel.git 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/) // @@ expression skb,privn,e; @@ skb = netdev_alloc_skb(privn,...); ... when strict ( -skb->dev = privn; | ?skb = e ) // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed