diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-04-16 16:51:23 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-04-17 19:58:11 +0530 |
commit | c9342d1a351ee1249fa98d936f756299a83d5684 (patch) | |
tree | 02516f7b4764f67233d4a303c380c24ebc1904c5 /drivers/hwmon/max127.c | |
parent | a1fe1eca0d8be69ccc1f3d615e5a529df1c82e66 (diff) |
phy: rockchip: usbdp: fix uninitialized variable
The ret variable may not be initialized in rk_udphy_usb3_phy_init(), if
the PHY is not using USB3 mode.
Since the DisplayPort part is handled separately and the PHY does not
support USB2 (which is routed to another PHY on Rockchip RK3588), the
right exit code for this case is 0. Thus let's initialize the variable
accordingly.
Fixes: 2f70bbddeb457 ("phy: rockchip: add usbdp combo phy driver")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404141048.qFAYDctQ-lkp@intel.com/
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20240416145233.94687-1-sebastian.reichel@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/hwmon/max127.c')
0 files changed, 0 insertions, 0 deletions