Staging: rtl8192u: ieee80211: ieee80211_rx: Remove commented printk messages
authorShraddha Barke <shraddha.6596@gmail.com>
Sun, 11 Oct 2015 05:11:23 +0000 (10:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:40:48 +0000 (20:40 -0700)
Remove commented out printk messages since they are not needed. Also remove
the unnecessary braces and blank lines

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c

index 0aa9021cb95e751e0c2f6c2f9f3963e5638d2ef6..4b5f32dda8b85fc721115a0c06c7d6cf104604e7 100644 (file)
@@ -492,14 +492,10 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,
 //     }
        if ((*last_seq == seq) &&
            time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) {
-               if (*last_frag == frag){
-                       //printk(KERN_WARNING "[1] go drop!\n");
+               if (*last_frag == frag)
                        goto drop;
-
-               }
                if (*last_frag + 1 != frag)
                        /* out-of-order fragment */
-                       //printk(KERN_WARNING "[2] go drop!\n");
                        goto drop;
        } else
                *last_seq = seq;
@@ -510,7 +506,6 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,
 
 drop:
 //     BUG_ON(!(fc & IEEE80211_FCTL_RETRY));
-//     printk("DUP\n");
 
        return 1;
 }
@@ -578,14 +573,12 @@ void ieee80211_indicate_packets(struct ieee80211_device *ieee, struct ieee80211_
 
                /* Indicat the packets to upper layer */
                        if (sub_skb) {
-                               //printk("0skb_len(%d)\n", skb->len);
                                sub_skb->protocol = eth_type_trans(sub_skb, ieee->dev);
                                memset(sub_skb->cb, 0, sizeof(sub_skb->cb));
                                sub_skb->dev = ieee->dev;
                                sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
                                //skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */
                                ieee->last_rx_ps_time = jiffies;
-                               //printk("1skb_len(%d)\n", skb->len);
                                netif_rx(sub_skb);
                        }
                }
@@ -795,7 +788,6 @@ static u8 parse_subframe(struct sk_buff *skb,
        if (rx_stats->bContainHTC) {
                LLCOffset += sHTCLng;
        }
-       //printk("ChkLength = %d\n", LLCOffset);
        // Null packet, don't indicate it to upper layer
        ChkLength = LLCOffset;/* + (Frame_WEP(frame)!=0 ?Adapter->MgntInfo.SecurityInfo.EncryptionHeadOverhead:0);*/
 
@@ -1340,14 +1332,12 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
                                }
 
                                /* Indicat the packets to upper layer */
-                               //printk("0skb_len(%d)\n", skb->len);
                                sub_skb->protocol = eth_type_trans(sub_skb, dev);
                                memset(sub_skb->cb, 0, sizeof(sub_skb->cb));
                                sub_skb->dev = dev;
                                sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
                                //skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */
                                ieee->last_rx_ps_time = jiffies;
-                               //printk("1skb_len(%d)\n", skb->len);
                                netif_rx(sub_skb);
                        }
                }
@@ -1758,8 +1748,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee,
 
                        offset = (info_element->data[2] >> 1)*2;
 
-                       //printk("offset1:%x aid:%x\n",offset, ieee->assoc_id);
-
                        if(ieee->assoc_id < 8*offset ||
                                ieee->assoc_id > 8*(offset + info_element->len -3))
 
@@ -2070,7 +2058,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee,
                case MFIE_TYPE_COUNTRY:
                        IEEE80211_DEBUG_SCAN("MFIE_TYPE_COUNTRY: %d bytes\n",
                                             info_element->len);
-                       //printk("=====>Receive <%s> Country IE\n",network->ssid);
                        ieee80211_extract_country_ie(ieee, info_element, network, network->bssid);//addr2 is same as addr3 when from an AP
                        break;
 /* TODO */