From: Saurav Girepunje Date: Sun, 3 Oct 2021 15:58:28 +0000 (+0530) Subject: staging: rtl8723bs: core: remove condition never execute X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d98f096cf5e1a339a77b7993423f7f62bcdebfbb;p=linux.git staging: rtl8723bs: core: remove condition never execute Remove condition which never get execute. as pattrib->mdata is always zero before if condition check. Reviewed-by: Hans de Goede Signed-off-by: Saurav Girepunje Link: https://lore.kernel.org/r/YVnTJCoz2qsXDXGc@user Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 39adec4755812..9961af8de40f8 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -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);