]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 13 Dec 2021 02:05:07 +0000 (02:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:19 +0000 (07:44 +0200)
commitc1cbf006feee7492eada54dec6c115bc2c7e5791
tree4648786f2d1a09fa3d01d1dab9b6e22d3b959ca7
parenta262c2dc833f2fe1bd5c53a4d899e7077d3b1da9
phy: tegra: xusb: Fix return value of tegra_xusb_find_port_node function

commit 045a31b95509c8f25f5f04ec5e0dec5cd09f2c5f upstream.

callers of tegra_xusb_find_port_node() function only do NULL checking for
the return value. return NULL instead of ERR_PTR(-ENOMEM) to keep
consistent.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20211213020507.1458-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Alva Lan <alvalan9@foxmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/tegra/xusb.c