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

drm/omap: dsi: Rework and remove a few unused variables

Fixes the following W=1 kernel build warning(s):

drivers/gpu/drm/omapdrm/dss/dsi.c: In function ‘_dsi_print_reset_status’:
drivers/gpu/drm/omapdrm/dss/dsi.c:1131:6: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/omapdrm/dss/dsi.c: In function ‘dsi_update’:
drivers/gpu/drm/omapdrm/dss/dsi.c:3943:10: warning: variable ‘dh’ set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/omapdrm/dss/dsi.c:3943:6: warning: variable ‘dw’ set but not used [-Wunused-but-set-variable]

Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201105144517.1826692-9-lee.jones@linaro.org

authored by

Lee Jones and committed by
Tomi Valkeinen
ae36fccc 67daa52d

+2 -7
+2 -7
drivers/gpu/drm/omapdrm/dss/dsi.c
··· 1128 1128 1129 1129 static void _dsi_print_reset_status(struct dsi_data *dsi) 1130 1130 { 1131 - u32 l; 1132 1131 int b0, b1, b2; 1133 1132 1134 1133 /* A dummy read using the SCP interface to any DSIPHY register is 1135 1134 * required after DSIPHY reset to complete the reset of the DSI complex 1136 1135 * I/O. */ 1137 - l = dsi_read_reg(dsi, DSI_DSIPHY_CFG5); 1136 + dsi_read_reg(dsi, DSI_DSIPHY_CFG5); 1138 1137 1139 1138 if (dsi->data->quirks & DSI_QUIRK_REVERSE_TXCLKESC) { 1140 1139 b0 = 28; ··· 3939 3940 void (*callback)(int, void *), void *data) 3940 3941 { 3941 3942 struct dsi_data *dsi = to_dsi_data(dssdev); 3942 - u16 dw, dh; 3943 3943 3944 3944 dsi_perf_mark_setup(dsi); 3945 3945 ··· 3947 3949 dsi->framedone_callback = callback; 3948 3950 dsi->framedone_data = data; 3949 3951 3950 - dw = dsi->vm.hactive; 3951 - dh = dsi->vm.vactive; 3952 - 3953 3952 #ifdef DSI_PERF_MEASURE 3954 - dsi->update_bytes = dw * dh * 3953 + dsi->update_bytes = dsi->vm.hactive * dsi->vm.vactive * 3955 3954 dsi_get_pixel_size(dsi->pix_fmt) / 8; 3956 3955 #endif 3957 3956 dsi_update_screen_dispc(dsi);