From: Michael Straube Date: Fri, 7 Jan 2022 21:50:28 +0000 (+0100) Subject: staging: r8188eu: remove HW_VAR_BASIC_RATE from GetHwReg8188EU() X-Git-Tag: v5.18-rc1~81^2~435 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dba29039b6d0a7aebb72525ebf028a5f2cf1aa89;p=linux-block.git staging: r8188eu: remove HW_VAR_BASIC_RATE from GetHwReg8188EU() GetHwReg8188EU() is never called with HW_VAR_BASIC_RATE. Remove that case from the function. Signed-off-by: Michael Straube Link: https://lore.kernel.org/r/20220107215033.12257-2-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/hal/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c index fc62019143ba..306f3b4ecc27 100644 --- a/drivers/staging/r8188eu/hal/usb_halinit.c +++ b/drivers/staging/r8188eu/hal/usb_halinit.c @@ -1594,9 +1594,6 @@ void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val) struct odm_dm_struct *podmpriv = &haldata->odmpriv; switch (variable) { - case HW_VAR_BASIC_RATE: - *((u16 *)(val)) = haldata->BasicRateSet; - fallthrough; case HW_VAR_TXPAUSE: val[0] = rtw_read8(Adapter, REG_TXPAUSE); break;