Commit 6f67140
phy: renesas: rcar-gen3-usb2: Fix returning wrong error code
[ Upstream commit 249abaf ]
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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Fixes: 441a681 ("phy: rcar-gen3-usb2: fix implementation for runtime PM")
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent 5cd8a51 commit 6f67140
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
677 | | - | |
678 | 676 | | |
679 | 677 | | |
680 | 678 | | |
| |||
738 | 736 | | |
739 | 737 | | |
740 | 738 | | |
741 | | - | |
742 | | - | |
743 | 739 | | |
744 | 740 | | |
745 | 741 | | |
| |||
0 commit comments