Commit 95f27a51 authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent cdd4743e
...@@ -1478,9 +1478,6 @@ static int ath10k_pci_dump_memory_section(struct ath10k *ar, ...@@ -1478,9 +1478,6 @@ static int ath10k_pci_dump_memory_section(struct ath10k *ar,
if (!mem_region || !buf) if (!mem_region || !buf)
return 0; return 0;
if (mem_region->section_table.size < 0)
return 0;
cur_section = &mem_region->section_table.sections[0]; cur_section = &mem_region->section_table.sections[0];
if (mem_region->start > cur_section->start) { if (mem_region->start > cur_section->start) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment