enic: fix an endian bug in enic_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Feb 2012 21:19:54 +0000 (21:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Mar 2012 22:23:42 +0000 (17:23 -0500)
commit413708bbaf5c85c4c8a264145f7d6c3afcd97f99
tree92542d8a2e280456024e0f04d5b7eb905f74ede7
parent73f98eab9b9e0bab492ca06add5657d9e702ddb1
enic: fix an endian bug in enic_probe()

"num_vfs" is a u32 but we only use the high 16 bits and the low 16bits
are left as zero.  That isn't a problem for little endian systems but it
will break on big endian ones.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/enic_main.c