staging: rtl8188eu: remove unused code [Linux 5.3]

This Linux kernel change "staging: rtl8188eu: remove unused code" is included in the Linux 5.3 release. This change is authored by Michael Straube <straube.linux [at] gmail.com> on Wed Jun 19 14:19:08 2019 +0200. The commit for this change in Linux stable tree is c2e1e0f (patch).

staging: rtl8188eu: remove unused code

Remove unused and/or commented code from rtw_wlan_util.c.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

There are 6 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
index f404370..d1e9988 100644
--- a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
@@ -27,9 +27,6 @@

 u8 REALTEK_96B_IE[] = {0x00, 0xe0, 0x4c, 0x02, 0x01, 0x20};

-#define R2T_PHY_DELAY  (0)
-
-/* define WAIT_FOR_BCN_TO_M    (3000) */
 #define WAIT_FOR_BCN_TO_MIN    (6000)
 #define WAIT_FOR_BCN_TO_MAX    (20000)

@@ -1041,7 +1038,6 @@ void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, stru

        switch (pIE->ElementID) {
        case _HT_EXTRA_INFO_IE_:    /* HT info */
-           /* HT_info_handler(padapter, pIE); */
            bwmode_update_check(padapter, pIE);
            break;
        case _ERPINFO_IE_:
@@ -1346,8 +1342,6 @@ void update_IOT_info(struct adapter *padapter)
                   false);
        break;
    case HT_IOT_PEER_REALTEK:
-       /* rtw_write16(padapter, 0x4cc, 0xffff); */
-       /* rtw_write16(padapter, 0x546, 0x01c0); */
        /* disable high power */
        Switch_DM_Func(padapter, (u32)(~DYNAMIC_BB_DYNAMIC_TXPWR),
                   false);

Leave a Reply

Your email address will not be published. Required fields are marked *