staging: rtl8723bs: simplify rtw_xmit_classifier control flow

Simplify rtw_xmit_classifier() by removing the exit label and
using direct returns for error handling.

No functional change.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Link: https://patch.msgid.link/20260514100708.25031-2-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Hungyu Lin
2026-05-14 10:07:04 +00:00
committed by Greg Kroah-Hartman
parent 254eb12121
commit dd711d244b

View File

@@ -1867,16 +1867,13 @@ s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe)
struct tx_servq *ptxservq;
struct pkt_attrib *pattrib = &pxmitframe->attrib;
struct hw_xmit *phwxmits = padapter->xmitpriv.hwxmits;
signed int res = _SUCCESS;
psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
if (pattrib->psta != psta)
return _FAIL;
if (!psta) {
res = _FAIL;
goto exit;
}
if (!psta)
return _FAIL;
if (!(psta->state & _FW_LINKED))
return _FAIL;
@@ -1890,9 +1887,7 @@ s32 rtw_xmit_classifier(struct adapter *padapter, struct xmit_frame *pxmitframe)
ptxservq->qcnt++;
phwxmits[ac_index].accnt++;
exit:
return res;
return _SUCCESS;
}
void rtw_free_hwxmits(struct adapter *padapter)