Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: remove dead commented code from odm.c

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>

authored by

Navaneeth K and committed by
Greg Kroah-Hartman
2cbcfd3f 6ddb173f

+5 -8
+5 -8
drivers/staging/rtl8723bs/hal/odm.c
··· 609 609 /* 8723A or 8189ES platform */ 610 610 /* NeilChen--2012--08--24-- */ 611 611 /* Fix Leave LPS issue */ 612 - if ((adapter_to_pwrctl(pDM_Odm->Adapter)->pwr_mode != PS_MODE_ACTIVE) /* in LPS mode */ 613 - /* */ 614 - /* (pDM_Odm->SupportICType & (ODM_RTL8723A))|| */ 615 - /* (pDM_Odm->SupportICType & (ODM_RTL8188E) &&(&&(((pDM_Odm->SupportInterface == ODM_ITRF_SDIO))) */ 616 - /* */ 617 - ) { 618 - odm_DIGbyRSSI_LPS(pDM_Odm); 619 - } else 612 + if (adapter_to_pwrctl(pDM_Odm->Adapter)->pwr_mode != PS_MODE_ACTIVE) { 613 + /* in LPS mode */ 614 + odm_DIGbyRSSI_LPS(pDM_Odm); 615 + } else { 620 616 odm_DIG(pDM_Odm); 617 + } 621 618 622 619 { 623 620 struct dig_t *pDM_DigTable = &pDM_Odm->DM_DigTable;