rtlwifi: remove redundant initialization to cfg_cmd
authorColin Ian King <colin.king@canonical.com>
Sat, 4 Nov 2017 19:37:59 +0000 (19:37 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 8 Nov 2017 12:44:42 +0000 (14:44 +0200)
commitf80ead1cd5fa9da78a3c2aad1de18f01e2ca18f2
treefcb38f627bac0eeeb8ecbaa8f04ab435ee23015c
parent82e730e521ce6d4c633c7ff7edfd8fb4242c0c6e
rtlwifi: remove redundant initialization to cfg_cmd

cfg_cmd is initialized to zero and this value is never read, instead
it is over-written in the start of a do-while loop. Remove the
redundant initialization. Cleans up clang warning:

drivers/net/wireless/realtek/rtlwifi/core.c:1750:22: warning: Value
stored to 'cfg_cmd' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/core.c