Skip to content
Commit 7c1b998d authored by Wei Yongjun's avatar Wei Yongjun Committed by Felix Fietkau
Browse files

mt76: fix return value check in mt76_wmac_probe()



In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: c8846e10 ("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent b126c889
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment