ath10k: fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Dec 2018 07:53:41 +0000 (09:53 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Dec 2018 17:05:19 +0000 (19:05 +0200)
commitc28dcbce0592a1a7e32975e28bdd80e5d8d2cfa3
tree7cc361a7a1189f6a48a129be20fe56a142f0df33
parent8765967592875f1b4b20a8541a325045e5f75a36
ath10k: fix a NULL vs IS_ERR() check

The devm_memremap() function doesn't return NULLs, it returns error
pointers.

Fixes: ba94c753ccb4 ("ath10k: add QMI message handshake for wcn3990 client")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/qmi.c