]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: btcoex: remove redundant initialization of variables ant_num and single_ant_path
authorColin Ian King <colin.king@canonical.com>
Thu, 23 Jul 2020 16:32:14 +0000 (17:32 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 14:53:46 +0000 (17:53 +0300)
commit3414a06840724e81df1b1c9e0cc77dc65beaf30a
tree1677a8e146a48444221c12d906e73d413aab611c
parent44f348ce18e233a8b2cadb619a01097928ebb595
rtlwifi: btcoex: remove redundant initialization of variables ant_num and single_ant_path

The variables ant_num and single_ant_path are being initialized with a
value that is never read and are being updated later with a new value.
The initializations are 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/20200723163214.995226-1-colin.king@canonical.com
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c