Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: mt7621-eth: fix return value check in mtk_connect_phy_node()
In case of error, the function of_phy_connect() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: e3cbf47 ("staging: mt7621-eth: add the drivers core files") Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information