aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/Makefile
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-10-05 20:42:45 +0200
committerKalle Valo2018-10-13 20:23:05 +0300
commit9d9cdbf3f9edbcc0d4f2b4d17f3329315c5f84ad (patch)
tree16b2880f8a3fecc980da159da310513add3663aa /drivers/net/Makefile
parent6bc17950f4b2459f8d50b999ace6b30b505aee50 (diff)
ath10k: htt_rx: fix signedness bug in ath10k_update_per_peer_tx_stats
Currently, the error handling for the call to function ath10k_get_legacy_rate_idx() doesn't work because *rate_idx* is of type u8 (8 bits, unsigned), which makes it impossible for it to hold a value less than 0. Fix this by changing the type of variable *rate_idx* to s8 (8 bits, signed). Addresses-Coverity-ID: 1473914 ("Unsigned compared against 0") Fixes: 0189dbd71cbd ("ath10k: get the legacy rate index to update the txrate table") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/Makefile')
0 files changed, 0 insertions, 0 deletions