rtlwifi: rtl8192ee: Remove redundant initialization of variable version
authorColin Ian King <colin.king@canonical.com>
Thu, 7 Oct 2021 16:37:22 +0000 (17:37 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 13 Oct 2021 06:20:30 +0000 (09:20 +0300)
commit51fd5c6417b9517b23aa655649a57ca90948b06f
tree9f796b749060c4a7afc3597308879b7df162b6db
parente3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd
rtlwifi: rtl8192ee: Remove redundant initialization of variable version

The variable version is being initialized with a value that is
never read, it is being updated afterwards in both branches of
an if statement. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211007163722.20165-1-colin.king@canonical.com
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c