OSDN Git Service

ath10k: remove redundant error check
authorColin Ian King <colin.king@canonical.com>
Tue, 28 Feb 2017 11:14:39 +0000 (11:14 +0000)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 16 Mar 2017 08:56:46 +0000 (10:56 +0200)
commit51f60b8b6979da361c97602d6b6df3c3f72c7c4c
tree38aec006d541e00c9f6eff96c1d9adaea3ff7d00
parent45c3d550b0684343b9d4b25aeec9b49c6effc1f9
ath10k: remove redundant error check

The check on ret for an error is redundant because it is already been
checked for non-zero earlier on and ret is never non-zero at this point.
Fix this by removing the redundant check and error message.

Detected by CoverityScan, CID#1357170 ("Logically Dead Code")

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