staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_PNO_SET...
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 12 Mar 2021 18:33:26 +0000 (19:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Mar 2021 15:56:45 +0000 (16:56 +0100)
Remove conditional code block checked by unused CONFIG_PNO_SET_DEBUG

Cleaning required in TODO file:

find and remove code blocks guarded by never set CONFIG_FOO defines

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/1a2eaead1b848c26892497fe34841b29e5eaeec2.1615572985.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c
drivers/staging/rtl8723bs/hal/sdio_halinit.c

index a10bdd51eb5e5cf0bb92b35575f8b7c8f8426c7f..d246ba2117b5bb9381149266ea1dadfb00a40645 100644 (file)
@@ -1668,18 +1668,6 @@ static void rtl8723b_set_FwRsvdPagePkt(
                        rtl8723b_fill_fake_txdesc(padapter,
                                &ReservedPagePacket[BufIndex-TxDescLen],
                                ProbeReqLength, false, false, false);
-#ifdef CONFIG_PNO_SET_DEBUG
-       {
-                       int gj;
-                       printk("probe req pkt =>\n");
-                       for (gj = 0; gj < ProbeReqLength+TxDescLen; gj++) {
-                               printk(" %02x ", ReservedPagePacket[BufIndex-TxDescLen+gj]);
-                               if ((gj+1)%8 == 0)
-                                       printk("\n");
-                       }
-                       printk(" <=end\n");
-       }
-#endif
                        CurtPktPageNum =
                                (u8)PageNum_128(TxDescLen + ProbeReqLength);
 
@@ -1690,18 +1678,6 @@ static void rtl8723b_set_FwRsvdPagePkt(
                        /* PNO INFO Page */
                        RsvdPageLoc.LocPNOInfo = TotalPageNum;
                        ConstructPnoInfo(padapter, &ReservedPagePacket[BufIndex-TxDescLen], &PNOLength);
-#ifdef CONFIG_PNO_SET_DEBUG
-       {
-                       int gj;
-                       printk("PNO pkt =>\n");
-                       for (gj = 0; gj < PNOLength; gj++) {
-                               printk(" %02x ", ReservedPagePacket[BufIndex-TxDescLen+gj]);
-                               if ((gj + 1)%8 == 0)
-                                       printk("\n");
-                       }
-                       printk(" <=end\n");
-       }
-#endif
 
                        CurtPktPageNum = (u8)PageNum_128(PNOLength);
                        TotalPageNum += CurtPktPageNum;
@@ -1710,18 +1686,6 @@ static void rtl8723b_set_FwRsvdPagePkt(
                        /* SSID List Page */
                        RsvdPageLoc.LocSSIDInfo = TotalPageNum;
                        ConstructSSIDList(padapter, &ReservedPagePacket[BufIndex-TxDescLen], &SSIDLegnth);
-#ifdef CONFIG_PNO_SET_DEBUG
-       {
-                       int gj;
-                       printk("SSID list pkt =>\n");
-                       for (gj = 0; gj < SSIDLegnth; gj++) {
-                               printk(" %02x ", ReservedPagePacket[BufIndex-TxDescLen+gj]);
-                               if ((gj + 1)%8 == 0)
-                                       printk("\n");
-                       }
-                       printk(" <=end\n");
-       }
-#endif
                        CurtPktPageNum = (u8)PageNum_128(SSIDLegnth);
                        TotalPageNum += CurtPktPageNum;
                        BufIndex += (CurtPktPageNum*PageSize);
@@ -1729,18 +1693,6 @@ static void rtl8723b_set_FwRsvdPagePkt(
                        /* Scan Info Page */
                        RsvdPageLoc.LocScanInfo = TotalPageNum;
                        ConstructScanInfo(padapter, &ReservedPagePacket[BufIndex-TxDescLen], &ScanInfoLength);
-#ifdef CONFIG_PNO_SET_DEBUG
-       {
-                       int gj;
-                       printk("Scan info pkt =>\n");
-                       for (gj = 0; gj < ScanInfoLength; gj++) {
-                               printk(" %02x ", ReservedPagePacket[BufIndex-TxDescLen+gj]);
-                               if ((gj + 1)%8 == 0)
-                                       printk("\n");
-                       }
-                       printk(" <=end\n");
-       }
-#endif
                        CurtPktPageNum = (u8)PageNum_128(ScanInfoLength);
                        TotalPageNum += CurtPktPageNum;
                        BufIndex += (CurtPktPageNum*PageSize);
index 9dd3f3249e01d1ef528e48047d57a16ab0549ffe..3266839031f8ca99f8e157ef6a8761cbd3ebc58e 100644 (file)
@@ -1476,11 +1476,6 @@ static void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val)
                                rtw_read32(padapter, 0x2fc),
                                rtw_read32(padapter, 0x8c)
                        );
-#ifdef CONFIG_PNO_SET_DEBUG
-                       DBG_871X("0x1b9: 0x%02x, 0x632: 0x%02x\n", rtw_read8(padapter, 0x1b9), rtw_read8(padapter, 0x632));
-                       DBG_871X("0x4fc: 0x%02x, 0x4fd: 0x%02x\n", rtw_read8(padapter, 0x4fc), rtw_read8(padapter, 0x4fd));
-                       DBG_871X("TXDMA STATUS: 0x%08x\n", rtw_read32(padapter, REG_TXDMA_STATUS));
-#endif
 
                        {
                                /*  2.  Set Disable WOWLAN H2C command. */