Commit 855181f5 authored by Charles Clément's avatar Charles Clément Committed by Greg Kroah-Hartman

Staging: vt6655: use ETH_FCS_LEN macro instead of custom one

Replace custom FCS/CRC length definition U_CRC_LEN by ETH_FCS_LEN
from <linux/if_ether.h>.
Signed-off-by: default avatarCharles Clément <caratorn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 21ec51f3
...@@ -569,7 +569,7 @@ device_receive_frame ( ...@@ -569,7 +569,7 @@ device_receive_frame (
// RX OK // RX OK
// //
//remove the CRC length //remove the CRC length
FrameSize -= U_CRC_LEN; FrameSize -= ETH_FCS_LEN;
if (( !(*pbyRsr & (RSR_ADDRBROAD | RSR_ADDRMULTI))) && // unicast address if (( !(*pbyRsr & (RSR_ADDRBROAD | RSR_ADDRMULTI))) && // unicast address
(IS_FRAGMENT_PKT((skb->data+4))) (IS_FRAGMENT_PKT((skb->data+4)))
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
// //
// constants // constants
// //
#define U_CRC_LEN 4 //
#define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1) #define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
// Ethernet address string length // Ethernet address string length
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment