kernel_samsung_a53x/drivers/phy/renesas
Yoshihiro Shimoda a8f47f43b8 phy: renesas: rcar-gen3-usb2: Fix returning wrong error code
[ Upstream commit 249abaf3bf0dd07f5ddebbb2fe2e8f4d675f074e ]

Even if device_create_file() returns error code,
rcar_gen3_phy_usb2_probe() will return zero because the "ret" is
variable shadowing.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202312161021.gOLDl48K-lkp@intel.com/
Fixes: 441a681b8843 ("phy: rcar-gen3-usb2: fix implementation for runtime PM")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20240105093703.3359949-1-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:23 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-rcar-gen2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-rcar-gen3-pcie.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-rcar-gen3-usb2.c phy: renesas: rcar-gen3-usb2: Fix returning wrong error code 2024-11-18 12:13:23 +01:00
phy-rcar-gen3-usb3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00