]> git.ipfire.org Git - people/ms/u-boot.git/commit
net: e1000: use correct helper to do endianness conversion
authorMiao Yan <yanmiaobest@gmail.com>
Mon, 21 Dec 2015 10:07:02 +0000 (02:07 -0800)
committerTom Rini <trini@konsulko.com>
Mon, 4 Jan 2016 17:25:35 +0000 (12:25 -0500)
commita40b2dff7bec6c1656a59ce31c16207b8954eb68
tree9f2ff24c83b669061f960ec0ab1957a210f4556b
parent18d3f46995319dfcb7f73c7c6a5e5da6b8e57e69
net: e1000: use correct helper to do endianness conversion

In struct e1000_rx_desc, field 'length' is declared as
uint16_t, so use le16_to_cpu() to do endianness conversion.

Also drop conversion on 'status' which is declared as
uint8_t.

Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/net/e1000.c