staging: r8188eu: remove rtw_IOL_append_LLT_cmd()
authorMichael Straube <straube.linux@gmail.com>
Fri, 10 Sep 2021 11:11:10 +0000 (13:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 06:49:55 +0000 (08:49 +0200)
Function rtw_IOL_append_LLT_cmd() just returns _SUCCESS and the only
caller does not use the return value. Remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210910111110.4628-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_iol.c
drivers/staging/r8188eu/include/rtw_iol.h
drivers/staging/r8188eu/os_dep/ioctl_linux.c

index 0867755..ff08861 100644 (file)
@@ -72,11 +72,6 @@ bool rtw_IOL_applied(struct adapter  *adapter)
        return false;
 }
 
-int rtw_IOL_append_LLT_cmd(struct xmit_frame *xmit_frame, u8 page_boundary)
-{
-       return _SUCCESS;
-}
-
 int _rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value, u8 mask)
 {
        struct ioreg_cfg cmd = {8, IOREG_CMD_WB_REG, 0x0, 0x0, 0x0};
index a07c3ae..bb2c9fc 100644 (file)
@@ -33,7 +33,6 @@ enum ioreg_cmd {
 struct xmit_frame *rtw_IOL_accquire_xmit_frame(struct adapter *adapter);
 int rtw_IOL_append_cmds(struct xmit_frame *xmit_frame, u8 *IOL_cmds,
                        u32 cmd_len);
-int rtw_IOL_append_LLT_cmd(struct xmit_frame *xmit_frame, u8 page_boundary);
 bool rtw_IOL_applied(struct adapter  *adapter);
 int rtw_IOL_append_DELAY_US_cmd(struct xmit_frame *xmit_frame, u16 us);
 int rtw_IOL_append_DELAY_MS_cmd(struct xmit_frame *xmit_frame, u16 ms);
index 2645595..911bcb6 100644 (file)
@@ -3989,7 +3989,6 @@ static int rtw_dbg_port(struct net_device *dev,
                switch (minor_cmd) {
                case 0x04: /* LLT table initialization test */
                {
-                       u8 page_boundary = 0xf9;
                        struct xmit_frame       *xmit_frame;
 
                        xmit_frame = rtw_IOL_accquire_xmit_frame(padapter);
@@ -3998,8 +3997,6 @@ static int rtw_dbg_port(struct net_device *dev,
                                break;
                        }
 
-                       rtw_IOL_append_LLT_cmd(xmit_frame, page_boundary);
-
                        if (rtl8188e_IOL_exec_cmds_sync(padapter, xmit_frame, 500, 0) != _SUCCESS)
                                ret = -EPERM;
                }