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

vxlan: use unsigned int instead of unsigned

'unsigned int' is slightly better.

Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Cong Wang and committed by
David S. Miller
31fec5aa 784e4616

+4 -4
+4 -4
drivers/net/vxlan.c
··· 1269 1269 /* Purge the forwarding table */ 1270 1270 static void vxlan_flush(struct vxlan_dev *vxlan) 1271 1271 { 1272 - unsigned h; 1272 + unsigned int h; 1273 1273 1274 1274 spin_lock_bh(&vxlan->hash_lock); 1275 1275 for (h = 0; h < FDB_HASH_SIZE; ++h) { ··· 1333 1333 static void vxlan_setup(struct net_device *dev) 1334 1334 { 1335 1335 struct vxlan_dev *vxlan = netdev_priv(dev); 1336 - unsigned h; 1336 + unsigned int h; 1337 1337 int low, high; 1338 1338 1339 1339 eth_hw_addr_random(dev); ··· 1459 1459 .sin_addr.s_addr = htonl(INADDR_ANY), 1460 1460 }; 1461 1461 int rc; 1462 - unsigned h; 1462 + unsigned int h; 1463 1463 1464 1464 vs = kmalloc(sizeof(*vs), GFP_KERNEL); 1465 1465 if (!vs) ··· 1722 1722 static __net_init int vxlan_init_net(struct net *net) 1723 1723 { 1724 1724 struct vxlan_net *vn = net_generic(net, vxlan_net_id); 1725 - unsigned h; 1725 + unsigned int h; 1726 1726 1727 1727 INIT_LIST_HEAD(&vn->vxlan_list); 1728 1728