summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 2c8187950491..781b2c5a5abe 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1290,7 +1290,6 @@ fec_enet_rx(struct net_device *ndev, int budget)
/* If this is a VLAN packet remove the VLAN Tag */
vlan_packet_rcvd = false;
if (fep->flags & FEC_FLAG_RX_VLAN &&
- fep->flags & FEC_FLAG_BUFDESC_EX &&
bdp->ebd.cbd_esc & BD_ENET_RX_VLAN) {
/* Push and remove the vlan tag */
struct vlan_hdr *vlan_header =
@@ -1330,8 +1329,7 @@ fec_enet_rx(struct net_device *ndev, int budget)
fec_enet_hwtstamp(fep, bdp->ebd.ts,
skb_hwtstamps(skb));
- if (fep->flags & FEC_FLAG_BUFDESC_EX &&
- fep->flags & FEC_FLAG_RX_CSUM) {
+ if (fep->flags & FEC_FLAG_RX_CSUM) {
if (!(bdp->ebd.cbd_esc & FLAG_RX_CSUM_ERROR)) {
/* don't check it */
skb->ip_summed = CHECKSUM_UNNECESSARY;