mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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:
parent
1384971796
commit
aa107ae83d
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user