]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: os_dep: remove redundant else in rtw_dev_unload
authorShyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
Sat, 18 Apr 2026 17:09:06 +0000 (22:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Apr 2026 11:01:57 +0000 (05:01 -0600)
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>
drivers/staging/rtl8723bs/os_dep/os_intfs.c

index d55a68b27096b2919d51203e2358a20255b3df62..b80f1d03ed5aeb1d6397b777c20ce7849cbd15b3 100644 (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 */