qtnfmac: modify qtnf_map_bar not to return NULL
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Tue, 29 Aug 2017 12:16:21 +0000 (15:16 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 31 Aug 2017 12:57:39 +0000 (15:57 +0300)
commitbab5dac73c08e0a18717756c4aff6417279bf2f9
tree977daab90bb8fc3258e68ce25b50aafab5583c5a
parent97f38011451f53fe9a495ff5e0ca035d91dd550d
qtnfmac: modify qtnf_map_bar not to return NULL

NULL is not a special type of success here but a error pointer.
So it makes sense to check against NULL in qtnf_map_bar
and return error code.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c