vxlan: Fix sparse warnings
authorJoseph Gasparakis <joseph.gasparakis@intel.com>
Fri, 13 Sep 2013 14:34:13 +0000 (07:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2013 02:18:13 +0000 (22:18 -0400)
commit35e4237973665c8a1ad4e3f7a7cb87573deaa24a
treece2529c137ec6b1da4f81aa77c2882706bd0c80c
parent5c44bbdab5fd7831859cf0d38626317ffcf39558
vxlan: Fix sparse warnings

This patch fixes sparse warnings when incorrectly handling the port number
and using int instead of unsigned int iterating through &vn->sock_list[].
Keeping the port as __be16 also makes things clearer wrt endianess.
Also, it was pointed out that vxlan_get_rx_port() had unnecessary checks
which got removed.

Signed-off-by: Joseph Gasparakis <joseph.gasparakis@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/linux/netdevice.h