]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ath11k: remove redundant initialization of pointer info
authorColin Ian King <colin.king@canonical.com>
Thu, 7 May 2020 16:43:18 +0000 (17:43 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 12 May 2020 07:34:04 +0000 (10:34 +0300)
commit52b776fa592178c3dc341a93fec7bc760b38cc15
tree6e8d317d982e009e4bf20b08281d65be2edbba50
parent32221df6765b3773ff1af37c77f8531ebc48f246
ath11k: remove redundant initialization of pointer info

Pointer info is being assigned twice, once at the start of the function
and secondly when it is just about to be accessed. Remove the redundant
initialization and keep the original assignment to info that is close
to the memcpy that uses it.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200507164318.56570-1-colin.king@canonical.com
drivers/net/wireless/ath/ath11k/mac.c