diff options
| author | Vinod Koul <[email protected]> | 2020-10-01 12:39:11 +0530 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2020-10-01 13:06:40 +0530 |
| commit | 60f5a24c11f7fa0c8c74018cfd4c25a3f432fdaf (patch) | |
| tree | d54521813bb232c61c96526168c7ddc05f02a59f /net/unix | |
| parent | 7612f4e2bc0e4a7dbbebafc077d220385ab63fbb (diff) | |
phy: qcom-qmp: initialize the pointer to NULL
Smatch complains:
drivers/phy/qualcomm/phy-qcom-qmp.c:3899 qcom_qmp_phy_probe() error: uninitialized symbol 'dp_cfg'.
drivers/phy/qualcomm/phy-qcom-qmp.c:3900 qcom_qmp_phy_probe() error: uninitialized symbol 'dp_serdes'.
drivers/phy/qualcomm/phy-qcom-qmp.c:3902 qcom_qmp_phy_probe() error: uninitialized symbol 'usb_cfg'.
This is a warning but not a practical one as dp_cfg, dp_serdes and
usb_cfg will be set and used when valid. So we can set the pointers to
NULL to quiesce the warnings.
Fixes: 52e013d0bffa ("phy: qcom-qmp: Add support for DP in USB3+DP combo phy")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions