From: Wang Sheng-Hui Date: Sat, 3 Aug 2013 08:54:50 +0000 (+0800) Subject: vlan: cleanup the usage of vlan_dev_priv(dev) X-Git-Tag: v3.12-rc1~132^2~367 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c0667a8548ef2985038a5a1d0fa0f64e2774694;p=pandora-kernel.git vlan: cleanup the usage of vlan_dev_priv(dev) This patch cleanup 2 points for the usage of vlan_dev_priv(dev): * In vlan_dev.c/vlan_dev_hard_header, we should use the var *vlan directly after grabing the pointer at the beginning with *vlan = vlan_dev_priv(dev); when we need to access the fields of *vlan. * In vlan.c/register_vlan_device, add the var *vlan pointer struct vlan_dev_priv *vlan; to cleanup the code to access the fields of vlan_dev_priv(new_dev). Signed-off-by: Wang Sheng-Hui Signed-off-by: David S. Miller --- Reading git-diff-tree failed