Skip to content

Commit

Permalink
Staging: vt6655: use ETH_FCS_LEN macro instead of custom one
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Charles Clément authored and Greg Kroah-Hartman committed May 18, 2010
1 parent 21ec51f commit 855181f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/vt6655/dpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6655/tether.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
//
// constants
//
#define U_CRC_LEN 4 //
#define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
// Ethernet address string length

Expand Down

0 comments on commit 855181f

Please sign in to comment.