staging: rtl8723bs: core: remove condition never execute
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sun, 3 Oct 2021 15:58:28 +0000 (21:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 10:28:15 +0000 (12:28 +0200)
Remove condition which never get execute.
as pattrib->mdata is always zero before if condition check.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/YVnTJCoz2qsXDXGc@user
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

index 39adec4755812b9111e58d534155ae0072df9e9c..9961af8de40f87ca155840a816fd118424541659 100644 (file)
@@ -3218,9 +3218,6 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da,
        else if ((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE)
                SetToDs(fctrl);
 
-       if (pattrib->mdata)
-               SetMData(fctrl);
-
        qc = (unsigned short *)(pframe + pattrib->hdrlen - 2);
 
        SetPriority(qc, tid);