]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Remove set but not used variable 'lpx'
authorzhengbin <zhengbin13@huawei.com>
Thu, 10 Oct 2019 06:55:05 +0000 (14:55 +0800)
committerSean Paul <seanpaul@chromium.org>
Thu, 10 Oct 2019 18:42:59 +0000 (14:42 -0400)
commit4b09d020497f59e2ff5113e3bb29d9dcdc4043cf
tree7c1440708af59ecdf4d216399a522efddb247351
parent482c18af9715c9b6f441e23a547bdf0c37d430ca
drm/msm/dsi: Remove set but not used variable 'lpx'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c: In function msm_dsi_dphy_timing_calc_v2:
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c:156:17: warning: variable lpx set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c: In function msm_dsi_dphy_timing_calc_v3:
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c:273:17: warning: variable lpx set but not used [-Wunused-but-set-variable]

'lpx' in msm_dsi_dphy_timing_calc_v2 is not used since commit bd342882c49f
("drm/msm/dsi: Add new method to calculate 14nm PHY timings")

'lpx' in msm_dsi_dphy_timing_calc_v3 is not used since commit d93a8273bc66
("drm/msm/dsi: implement auto PHY timing calculator for 10nm PHY")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1570690506-83287-4-git-send-email-zhengbin13@huawei.com
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c