summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-04-08 06:22:46 +0300
committerDavid S. Miller <davem@davemloft.net>2022-04-11 12:45:34 +0300
commitb559edfaf3f3f3eb726f99f65b181ab310b3d4bc (patch)
tree2cb918efdaa83fa9811e02e61d04f6abbca87a7c /include/net
parent750d019d700964e8140d7945b7df88f11b2b8c03 (diff)
downloadlinux-b559edfaf3f3f3eb726f99f65b181ab310b3d4bc.tar.xz
net: ethernet: mtk_eth_soc: fix return value check in mtk_wed_add_hw()
If syscon_regmap_lookup_by_phandle() fails, it never return NULL pointer, change the check to IS_ERR(). Fixes: 804775dfc288 ("net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions