From: Nikolay Kulikov Date: Sat, 2 May 2026 21:55:43 +0000 (+0300) Subject: staging: rtl8723bs: remove unused ICType from struct hal_version X-Git-Tag: v7.2-rc1~66^2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acca1dcd9f567562c143316012e3f018b5b9ed9b;p=thirdparty%2Fkernel%2Flinux.git staging: rtl8723bs: remove unused ICType from struct hal_version Remove the unused 'ICType' field from the 'struct hal_version', as it always takes a single value (CHIP_8723B) upon initialization and is never used in driver. Signed-off-by: Nikolay Kulikov Link: https://patch.msgid.link/20260502220056.59815-5-nikolayof23@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index 87da5f908e1aa..055ce57848f20 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -835,7 +835,6 @@ static struct hal_version ReadChipVersion8723B(struct adapter *padapter) pHalData = GET_HAL_DATA(padapter); value32 = rtw_read32(padapter, REG_SYS_CFG); - ChipVersion.ICType = CHIP_8723B; ChipVersion.chip_normal = ((value32 & RTL_ID) ? false : true); ChipVersion.VendorType = ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : CHIP_VENDOR_TSMC); ChipVersion.CUTVersion = (value32 & CHIP_VER_RTL_MASK)>>CHIP_VER_RTL_SHIFT; /* IC version (CUT) */ diff --git a/drivers/staging/rtl8723bs/include/HalVerDef.h b/drivers/staging/rtl8723bs/include/HalVerDef.h index cb970b1d37d76..c9c7bc369fa9d 100644 --- a/drivers/staging/rtl8723bs/include/HalVerDef.h +++ b/drivers/staging/rtl8723bs/include/HalVerDef.h @@ -42,7 +42,6 @@ enum hal_vendor_e { /* tag_HAL_Manufacturer_Version_Definition */ }; struct hal_version { /* tag_HAL_VERSION */ - enum hal_ic_type_e ICType; bool chip_normal; /* true - normal chip, false - test chip */ enum hal_cut_version_e CUTVersion; enum hal_vendor_e VendorType;