]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ath10k: remove unnecessary comparison of unsigned integer with < 0
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 5 Oct 2018 18:56:23 +0000 (20:56 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 13 Oct 2018 17:23:56 +0000 (20:23 +0300)
commit7bfd82bff60ef572b9acef8ca32669ace1f50664
tree198a2e198eadd03241cfd7a9e57c571ff4d36d08
parent9d9cdbf3f9edbcc0d4f2b4d17f3329315c5f84ad
ath10k: remove unnecessary comparison of unsigned integer with < 0

There is no need to compare *ps_state_enable* with < 0 because
such variable is of type u8 (8 bits, unsigned), making it
impossible to hold a negative value.

Fix this by removing such comparison.

Addresses-Coverity-ID: 1473921 ("Unsigned compared against 0")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/debug.c