diff options
author | Santosh Nayak <santoshprasadnayak@gmail.com> | 2012-02-24 06:56:39 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-24 17:53:03 -0500 |
commit | 21ca54e99b085b9ff4c91ca41afe42a439966109 (patch) | |
tree | 0b62c1e6c00e05258200bca0ecddca2f96e099fa /drivers/net/ethernet/cisco/enic/enic_pp.c | |
parent | e807e566e99b644d8d248ba9393a0ba3f1012fdc (diff) | |
download | op-kernel-dev-21ca54e99b085b9ff4c91ca41afe42a439966109.zip op-kernel-dev-21ca54e99b085b9ff4c91ca41afe42a439966109.tar.gz |
enic: Fix endianness bug.
Sparse complaints the endian bug.
Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/enic_pp.c')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic_pp.c b/drivers/net/ethernet/cisco/enic/enic_pp.c index 22bf03a..c347b62 100644 --- a/drivers/net/ethernet/cisco/enic/enic_pp.c +++ b/drivers/net/ethernet/cisco/enic/enic_pp.c @@ -72,7 +72,7 @@ static int enic_set_port_profile(struct enic *enic, int vf) struct enic_port_profile *pp; struct vic_provinfo *vp; const u8 oui[3] = VIC_PROVINFO_CISCO_OUI; - const u16 os_type = htons(VIC_GENERIC_PROV_OS_TYPE_LINUX); + const __be16 os_type = htons(VIC_GENERIC_PROV_OS_TYPE_LINUX); char uuid_str[38]; char client_mac_str[18]; u8 *client_mac; |