staging: rtl8192e: Remove dead code associated with TCP_CSUM_OFFLOAD_RX
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 13 Jul 2011 23:47:44 +0000 (18:47 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 01:50:22 +0000 (20:50 -0500)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_rx.c

index b9284a220e41f13c661b2fb6fc2f7c84a0134e2e..cb83fffd4a13860e25385f07a2ec21d802789372 100644 (file)
@@ -1095,9 +1095,6 @@ struct rtllib_rx_stats {
        char   cck_adc_pwdb[4];
        u16    Seq_Num;
        u8     nTotalAggPkt;
-#ifdef TCP_CSUM_OFFLOAD_RX
-       u8      tcp_csum_valid;
-#endif
 #endif
 
 };
@@ -1398,9 +1395,6 @@ struct rtllib_rxb {
        struct sk_buff *subframes[MAX_SUBFRAME_COUNT];
        u8 dst[ETH_ALEN];
        u8 src[ETH_ALEN];
-#ifdef TCP_CSUM_OFFLOAD_RX
-       u8 tcp_csum_valid;
-#endif
 }__attribute__((packed));
 
 typedef union _frameqos {
index 10ec50cf58b69ed38e5156801804fe35210f32f4..d2659d2b69c475a361b425ba21e0492c392fb63c 100644 (file)
@@ -846,15 +846,7 @@ void rtllib_indicate_packets(struct rtllib_device *ieee, struct rtllib_rxb** prx
                                sub_skb->dev = ieee->dev;
                                sub_skb->dev->stats.rx_packets++;
                                sub_skb->dev->stats.rx_bytes += sub_skb->len;
-#ifdef TCP_CSUM_OFFLOAD_RX
-                               if ( prxb->tcp_csum_valid)
-                                       sub_skb->ip_summed = CHECKSUM_UNNECESSARY;
-                               else
-                                       sub_skb->ip_summed = CHECKSUM_NONE;
-
-#else
                                sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
-#endif
                                ieee->last_rx_ps_time = jiffies;
                                netif_rx(sub_skb);
                        }
@@ -1581,14 +1573,7 @@ void rtllib_rx_indicate_pkt_legacy(
                        sub_skb->dev = dev;
                        sub_skb->dev->stats.rx_packets++;
                        sub_skb->dev->stats.rx_bytes += sub_skb->len;
-#ifdef TCP_CSUM_OFFLOAD_RX
-                       if ( rx_stats->tcp_csum_valid)
-                               sub_skb->ip_summed = CHECKSUM_UNNECESSARY;
-                       else
-                               sub_skb->ip_summed = CHECKSUM_NONE;
-#else
                        sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
-#endif
                        netif_rx(sub_skb);
                }
        }
@@ -1749,9 +1734,6 @@ int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
        if (ieee->pHTInfo->bCurRxReorderEnable == false ||pTS == NULL || bToOtherSTA){
                rtllib_rx_indicate_pkt_legacy(ieee, rx_stats, rxb, dst, src);
        }else{
-#ifdef TCP_CSUM_OFFLOAD_RX
-               rxb->tcp_csum_valid = rx_stats->tcp_csum_valid;
-#endif
                RxReorderIndicatePacket(ieee, rxb, pTS, SeqNum);
        }