net/fec: cleanup types in fec_get_mac()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Aug 2013 08:25:14 +0000 (11:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2013 21:54:27 +0000 (17:54 -0400)
commit7d7628f3719e85e41d3948759ef969707036033d
tree1cf9e611107f14eb0133e22069e6c6566c8f9737
parentf91b29f5b8709a3968ce0e155cfeab2bc6f733dd
net/fec: cleanup types in fec_get_mac()

My static checker complains that on some arches unsigned longs can be 8
characters which is larger than the buffer is only 6 chars.
Additionally, Ben Hutchings points out that the buffer actually holds
big endian data and the buffer we are reading from is CPU endian.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c