diff options
| author | Wei Yongjun <[email protected]> | 2019-03-04 01:10:00 +0000 |
|---|---|---|
| committer | Felix Fietkau <[email protected]> | 2019-03-07 12:50:23 +0100 |
| commit | 7c1b998d3483acf785c45035c0e14a62023f1edb (patch) | |
| tree | 79534305973c02ad687c2fd51c2b133446ad45c0 /lib/mpi/mpi-cmp.c | |
| parent | b126c889743513543d007ac1c5c82b61ef003133 (diff) | |
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: c8846e101502 ("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions