]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove dead commented code from odm.c
authorNavaneeth K <knavaneeth786@gmail.com>
Tue, 25 Nov 2025 11:20:57 +0000 (11:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 13:21:02 +0000 (14:21 +0100)
Remove obsolete commented-out code that references unsupported chip
variants (ODM_RTL8723A, ODM_RTL8188E). This code has been dead since
the driver was added to staging.

Also fix the resulting formatting by removing the unnecessary outer
parentheses and moving the inline comment to its own line.

Signed-off-by: Navaneeth K <knavaneeth786@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20251125112059.16913-4-knavaneeth786@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm.c

index 4b36af47f680c224098fc3d921d707379ec69acc..639b6da2302b4d4f18bcc3f2079c227c94c9dd4c 100644 (file)
@@ -609,15 +609,12 @@ void ODM_DMWatchdog(struct dm_odm_t *pDM_Odm)
        /* 8723A or 8189ES platform */
        /* NeilChen--2012--08--24-- */
        /* Fix Leave LPS issue */
-       if ((adapter_to_pwrctl(pDM_Odm->Adapter)->pwr_mode != PS_MODE_ACTIVE) /*  in LPS mode */
-               /*  */
-               /* (pDM_Odm->SupportICType & (ODM_RTL8723A))|| */
-               /* (pDM_Odm->SupportICType & (ODM_RTL8188E) &&(&&(((pDM_Odm->SupportInterface  == ODM_ITRF_SDIO))) */
-               /*  */
-       ) {
-                       odm_DIGbyRSSI_LPS(pDM_Odm);
-       } else
+       if (adapter_to_pwrctl(pDM_Odm->Adapter)->pwr_mode != PS_MODE_ACTIVE) {
+               /* in LPS mode */
+               odm_DIGbyRSSI_LPS(pDM_Odm);
+       } else {
                odm_DIG(pDM_Odm);
+       }
 
        {
                struct dig_t *pDM_DigTable = &pDM_Odm->DM_DigTable;