ath10k: remove redundant -ve check against u32 integer size
authorColin Ian King <colin.king@canonical.com>
Fri, 12 Jan 2018 17:27:13 +0000 (17:27 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 16 Jan 2018 14:34:04 +0000 (16:34 +0200)
commit95f27a51ee02fdd9e7afc06f090c7171673a79ac
tree28e57ebacdbba048f20f005c52ffaf0f13c4d23b
parentcdd4743e9ba3d60b875adf2a67fe584883fdd1e9
ath10k: remove redundant -ve check against u32 integer size

Variable section_table.size is a u32 and so cannot be less than
zero, hence the less than zero check is redundant and can be
removed.

Detected by CoverityScan, CID#1463855 ("Unsigned compared against 0")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/pci.c