Skip to content
  • Wang Sheng-Hui's avatar
    vlan: cleanup the usage of vlan_dev_priv(dev) · 0c0667a8
    Wang Sheng-Hui authored
    
    
    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: default avatarWang Sheng-Hui <shhuiw@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0c0667a8