dect
/
linux-2.6
Archived
13
0
Fork 0

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: Charles Clément <caratorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Charles Clément 2010-05-18 10:19:36 -07:00 committed by Greg Kroah-Hartman
parent 21ec51f3df
commit 855181f515
2 changed files with 1 additions and 2 deletions

View File

@ -569,7 +569,7 @@ device_receive_frame (
// RX OK
//
//remove the CRC length
FrameSize -= U_CRC_LEN;
FrameSize -= ETH_FCS_LEN;
if (( !(*pbyRsr & (RSR_ADDRBROAD | RSR_ADDRMULTI))) && // unicast address
(IS_FRAGMENT_PKT((skb->data+4)))

View File

@ -36,7 +36,6 @@
//
// constants
//
#define U_CRC_LEN 4 //
#define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
// Ethernet address string length