Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/omap: Remove set but not used variable 'tclk_trail'

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

drivers/gpu/drm/omapdrm/dss/dsi.c: In function dsi_proto_timings:
drivers/gpu/drm/omapdrm/dss/dsi.c:3562:46: warning: variable tclk_trail set but not used [-Wunused-but-set-variable]

It is not used since commit 9960aa7cb58c ("drm/omap:
move omapdss & displays under omapdrm")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1570518949-47574-3-git-send-email-zhengbin13@huawei.com

authored by

zhengbin and committed by
Tomi Valkeinen
83e3b8a9 57d55bb5

+1 -2
+1 -2
drivers/gpu/drm/omapdrm/dss/dsi.c
··· 3548 3548 3549 3549 static void dsi_proto_timings(struct dsi_data *dsi) 3550 3550 { 3551 - unsigned int tlpx, tclk_zero, tclk_prepare, tclk_trail; 3551 + unsigned int tlpx, tclk_zero, tclk_prepare; 3552 3552 unsigned int tclk_pre, tclk_post; 3553 3553 unsigned int ths_prepare, ths_prepare_ths_zero, ths_zero; 3554 3554 unsigned int ths_trail, ths_exit; ··· 3567 3567 3568 3568 r = dsi_read_reg(dsi, DSI_DSIPHY_CFG1); 3569 3569 tlpx = FLD_GET(r, 20, 16) * 2; 3570 - tclk_trail = FLD_GET(r, 15, 8); 3571 3570 tclk_zero = FLD_GET(r, 7, 0); 3572 3571 3573 3572 r = dsi_read_reg(dsi, DSI_DSIPHY_CFG2);