Zheng Yongjun <zhengyongjun3@xxxxxxxxxx> wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function rtl8xxxu_gen2_config_channel: > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:1266:13: warning: variable rsr set but not used [-Wunused-but-set-variable] > > rsr is never used, so remove it. > > Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> > Signed-off-by: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx> > Reviewed-by: Chris Chiu <chiu@xxxxxxxxxxxx> Patch applied to wireless-drivers-next.git, thanks. 38860bdf28b7 rtl8xxxu: Remove set but not used variable 'rsr' -- https://patchwork.kernel.org/patch/11236191/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches