diff options
| author | Vinod Koul <vkoul@kernel.org> | 2026-09-13 16:24:45 +0530 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-09-15 13:26:46 +0530 |
| commit | 8bc74189b12e3d094d45eb82946c1fa17569fc93 (patch) | |
| tree | 969abdb3d98dda43277b28028c9bd51417e4118c | |
| parent | 8c474959739a953a547f8e5a0991c59ff86a9149 (diff) | |
| download | linux-next-8bc74189b12e3d094d45eb82946c1fa17569fc93.tar.gz linux-next-8bc74189b12e3d094d45eb82946c1fa17569fc93.zip | |
phy: phy-mtk-dp: drop unused variables
Recent changes in driver added unused variables causing build warnings:
drivers/phy/mediatek/phy-mtk-dp.c: In function ‘mtk_dp_phy_set_digital_drv_params’:
drivers/phy/mediatek/phy-mtk-dp.c:332:16: error: unused variable ‘ret’ [-Werror=unused-variable]
332 | int i, ret;
| ^~~
drivers/phy/mediatek/phy-mtk-dp.c: In function ‘mtk_dp_phy_init’:
drivers/phy/mediatek/phy-mtk-dp.c:348:24: error: unused variable ‘dev’ [-Werror=unused-variable]
348 | struct device *dev = &phy->dev;
| ^~~
drivers/phy/mediatek/phy-mtk-dp.c: In function ‘mtk_dp_phy_disable_all_lanes’:
drivers/phy/mediatek/phy-mtk-dp.c:457:13: error: unused variable ‘ret’ [-Werror=unused-variable]
457 | int ret;
| ^~~
Drop these to fix these
Link: https://patch.msgid.link/20260913105445.211613-1-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
| -rw-r--r-- | drivers/phy/mediatek/phy-mtk-dp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/mediatek/phy-mtk-dp.c b/drivers/phy/mediatek/phy-mtk-dp.c index ae32f9db3849..dbef4a4bd60a 100644 --- a/drivers/phy/mediatek/phy-mtk-dp.c +++ b/drivers/phy/mediatek/phy-mtk-dp.c @@ -329,7 +329,7 @@ static void mtk_dp_phy_set_digital_drv_params(struct mtk_dp_phy *dp_phy) { const struct mtk_dp_phy_pdata *pdata = dp_phy->pdata; const u32 reg = pdata->regs_dig_lane[DP_PHYD_LAN_DRIVING_PARAM_0]; - int i, ret; + int i; /* * Assume that all lanes need the same driving parameters: this @@ -345,7 +345,6 @@ static void mtk_dp_phy_set_digital_drv_params(struct mtk_dp_phy *dp_phy) static int mtk_dp_phy_init(struct phy *phy) { struct mtk_dp_phy *dp_phy = phy_get_drvdata(phy); - struct device *dev = &phy->dev; mtk_dp_phy_set_digital_drv_params(dp_phy); mtk_dp_phy_set_analog_calibration_params(dp_phy); @@ -454,7 +453,6 @@ static int mtk_dp_phy_disable_all_lanes(struct mtk_dp_phy *dp_phy) { const struct mtk_dp_phy_pdata *pdata = dp_phy->pdata; const u8 *regs = pdata->regs_dig_glb; - int ret; u32 val; /* Get mask of currently enabled lane */ |
