wifi: ath12k: Fix a couple NULL vs IS_ERR() bugs
The devm_memremap() function returns error pointers on error and the ioremap() function returns NULL on error. The error checking here got those flipped around. Fixes: c01d5cc9 ("wifi: ath12k: Power up userPD") Fixes: 6cee30f0 ("wifi: ath12k: add AHB driver support for IPQ5332") Signed-off-by:Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by:
Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/937abc74-9648-4c05-a2c3-8db408b3ed9e@stanley.mountain Signed-off-by:
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Loading
Please sign in to comment