diff options
| author | Wei Yongjun <[email protected]> | 2018-03-22 02:09:39 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-03-22 18:31:04 +0100 |
| commit | 960526d5970f80497ae500441adc2554c72dcf7e (patch) | |
| tree | 73261ef0cf2f4c622bf2494b9029425d28c2d20f /tools/perf/scripts/python | |
| parent | 2a5f03b60a0cf59b305f10ff2dbc6cf84b280bba (diff) | |
staging: mt7621-eth: fix return value check in mtk_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: e3cbf478f846 ("staging: mt7621-eth: add the drivers core files")
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions