mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
In case of error, the function syscon_node_to_regmap() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().
Fixes: 51f6b410fc ("phy: add driver for Microsemi Ocelot SerDes muxing")
Signed-off-by: Wei Yongjun <[email protected]>
Reviewed-by: Quentin Schulz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>