Skip to content

Commit 810c773

Browse files
YuKuai-huaweisuperna9999
authored andcommitted
drm/bridge: cdns: remove set but not used variable 'nlanes'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/bridge/cdns-dsi.c: In function ‘cdns_dsi_mode2cfg’: drivers/gpu/drm/bridge/cdns-dsi.c:515:11: warning: variable ‘nlanes’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed. Signed-off-by: yu kuai <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 303e2a3 commit 810c773

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/bridge/cdns-dsi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,14 @@ static int cdns_dsi_mode2cfg(struct cdns_dsi *dsi,
512512
struct cdns_dsi_output *output = &dsi->output;
513513
unsigned int tmp;
514514
bool sync_pulse = false;
515-
int bpp, nlanes;
515+
int bpp;
516516

517517
memset(dsi_cfg, 0, sizeof(*dsi_cfg));
518518

519519
if (output->dev->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE)
520520
sync_pulse = true;
521521

522522
bpp = mipi_dsi_pixel_format_to_bpp(output->dev->format);
523-
nlanes = output->dev->lanes;
524523

525524
if (mode_valid_check)
526525
tmp = mode->htotal -

0 commit comments

Comments
 (0)