wifi: ath9k: remove redundant assignment to variable ret
authorColin Ian King <colin.i.king@gmail.com>
Tue, 16 Jan 2024 15:54:52 +0000 (15:54 +0000)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 2 Feb 2024 11:39:29 +0000 (13:39 +0200)
commit08d82175bfbbbf7fc2bfca391877abed320b5e29
treefa6a0ad2c7203e5230c3f04e596644825d02133a
parent2a71528427c635f0a8bff704b2e62ce81c641d6f
wifi: ath9k:  remove redundant assignment to variable ret

The variable ret is being assigned a value but it isn't being
read afterwards. The assignment is redundant and so ret can be
removed.

Cleans up clang scan build warning:
warning: Although the value stored to 'ret' is used in the
enclosing expression, the value is never actually read from
'ret' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240116155452.2315351-1-colin.i.king@gmail.com
drivers/net/wireless/ath/ath9k/xmit.c