OSDN Git Service

rtlwifi: remove redundant initialization of variable ul_encalgo
authorColin Ian King <colin.i.king@gmail.com>
Sun, 30 Jan 2022 22:37:14 +0000 (22:37 +0000)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Feb 2022 12:26:34 +0000 (14:26 +0200)
commite80affde17200034587a7f3f708b1c5376fca71e
tree45c6b3b360652c99198b962554115ed7c070e006
parent6d3ac94bae21de6b6a1d81596752428960012816
rtlwifi: remove redundant initialization of variable ul_encalgo

Variable ul_encalgo is initialized with a value that is never read,
it is being re-assigned a new value in every case in the following
switch statement. The initialization is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220130223714.6999-1-colin.i.king@gmail.com
drivers/net/wireless/realtek/rtlwifi/cam.c