2021-09-10 18:35:39

by Saurav Girepunje

[permalink] [raw]
Subject: [PATCH] staging: r8188eu: core: remove unused variable padapter

Remove unused variable padapter from mp_init_xmit_attrib().

Signed-off-by: Saurav Girepunje <[email protected]>
---
drivers/staging/r8188eu/core/rtw_mp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/r8188eu/core/rtw_mp.c b/drivers/staging/r8188eu/core/rtw_mp.c
index dabdd0406f30..8ac23d2112fb 100644
--- a/drivers/staging/r8188eu/core/rtw_mp.c
+++ b/drivers/staging/r8188eu/core/rtw_mp.c
@@ -75,7 +75,7 @@ static void _init_mp_priv_(struct mp_priv *pmp_priv)
memcpy(pnetwork->Ssid.Ssid, "mp_871x", pnetwork->Ssid.SsidLength);
}

-static void mp_init_xmit_attrib(struct mp_tx *pmptx, struct adapter *padapter)
+static void mp_init_xmit_attrib(struct mp_tx *pmptx)
{
struct pkt_attrib *pattrib;
struct tx_desc *desc;
@@ -107,7 +107,7 @@ s32 init_mp_priv(struct adapter *padapter)
pmppriv->papdater = padapter;

pmppriv->tx.stop = 1;
- mp_init_xmit_attrib(&pmppriv->tx, padapter);
+ mp_init_xmit_attrib(&pmppriv->tx);

switch (padapter->registrypriv.rf_config) {
case RF_1T1R:
--
2.32.0


2021-09-10 18:42:04

by Pavel Skripkin

[permalink] [raw]
Subject: Re: [PATCH] staging: r8188eu: core: remove unused variable padapter

On 9/10/21 21:31, Saurav Girepunje wrote:
> Remove unused variable padapter from mp_init_xmit_attrib().
>
> Signed-off-by: Saurav Girepunje <[email protected]>

Reviewed-by: Pavel Skripkin <[email protected]>

Thanks!

> ---
> drivers/staging/r8188eu/core/rtw_mp.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/r8188eu/core/rtw_mp.c b/drivers/staging/r8188eu/core/rtw_mp.c
> index dabdd0406f30..8ac23d2112fb 100644
> --- a/drivers/staging/r8188eu/core/rtw_mp.c
> +++ b/drivers/staging/r8188eu/core/rtw_mp.c
> @@ -75,7 +75,7 @@ static void _init_mp_priv_(struct mp_priv *pmp_priv)
> memcpy(pnetwork->Ssid.Ssid, "mp_871x", pnetwork->Ssid.SsidLength);
> }
>
> -static void mp_init_xmit_attrib(struct mp_tx *pmptx, struct adapter *padapter)
> +static void mp_init_xmit_attrib(struct mp_tx *pmptx)
> {
> struct pkt_attrib *pattrib;
> struct tx_desc *desc;
> @@ -107,7 +107,7 @@ s32 init_mp_priv(struct adapter *padapter)
> pmppriv->papdater = padapter;
>
> pmppriv->tx.stop = 1;
> - mp_init_xmit_attrib(&pmppriv->tx, padapter);
> + mp_init_xmit_attrib(&pmppriv->tx);
>
> switch (padapter->registrypriv.rf_config) {
> case RF_1T1R:
> --
> 2.32.0
>


With regards,
Pavel Skripkin