Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vlan: clean up some variable names

To be consistent, s/info/vlan/.

Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Patrick McHardy <kaber@trash.net>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Amerigo Wang and committed by
David S. Miller
f3da3893 77ab8a54

+6 -6
+6 -6
net/8021q/vlan_dev.c
··· 672 672 static int vlan_dev_netpoll_setup(struct net_device *dev, struct netpoll_info *npinfo, 673 673 gfp_t gfp) 674 674 { 675 - struct vlan_dev_priv *info = vlan_dev_priv(dev); 676 - struct net_device *real_dev = info->real_dev; 675 + struct vlan_dev_priv *vlan = vlan_dev_priv(dev); 676 + struct net_device *real_dev = vlan->real_dev; 677 677 struct netpoll *netpoll; 678 678 int err = 0; 679 679 ··· 688 688 goto out; 689 689 } 690 690 691 - info->netpoll = netpoll; 691 + vlan->netpoll = netpoll; 692 692 693 693 out: 694 694 return err; ··· 696 696 697 697 static void vlan_dev_netpoll_cleanup(struct net_device *dev) 698 698 { 699 - struct vlan_dev_priv *info = vlan_dev_priv(dev); 700 - struct netpoll *netpoll = info->netpoll; 699 + struct vlan_dev_priv *vlan= vlan_dev_priv(dev); 700 + struct netpoll *netpoll = vlan->netpoll; 701 701 702 702 if (!netpoll) 703 703 return; 704 704 705 - info->netpoll = NULL; 705 + vlan->netpoll = NULL; 706 706 707 707 __netpoll_free_rcu(netpoll); 708 708 }