From: Saurav Girepunje Date: Sat, 4 Sep 2021 12:50:20 +0000 (+0530) Subject: staging: r8188eu: core: remove condition never execute X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8dac1203cdfb6c287b14748d007f644b03fb5e4d;p=linux.git staging: r8188eu: core: remove condition never execute Remove condition which never get execute. as pattrib->mdata is always zero before if condition check. Acked-by: Phillip Potter Acked-by: Michael Straube Signed-off-by: Saurav Girepunje Link: https://lore.kernel.org/r/YTNrjG1y05ByN54+@user Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 2212ce93ac088..57cf74d30984f 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -5669,9 +5669,6 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 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);