staging: rtl8723bs: os_dep: remove redundant else in rtw_dev_unload

Remove the unnecessary else block following a break
statment to simplify the control flow and improve
code readability.

Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260418170908.16257-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Shyam Sunder Reddy Padira 2026-04-18 22:39:06 +05:30 committed by Greg Kroah-Hartman
parent 1384971796
commit aa107ae83d

View File

@ -989,12 +989,10 @@ void rtw_dev_unload(struct adapter *padapter)
rtw_stop_drv_threads(padapter);
while (atomic_read(&pcmdpriv->cmdthd_running)) {
if (cnt > 5) {
if (cnt > 5)
break;
} else {
cnt++;
msleep(10);
}
cnt++;
msleep(10);
}
/* check the status of IPS */