drm/bridge: cdns: remove set but not used variable 'bpp'
authoryu kuai <yukuai3@huawei.com>
Thu, 26 Dec 2019 12:12:07 +0000 (20:12 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 6 Jan 2020 15:07:21 +0000 (16:07 +0100)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/bridge/cdns-dsi.c: In function
‘cdns_dsi_bridge_enable’:
drivers/gpu/drm/bridge/cdns-dsi.c:788:6: warning: variable ‘bpp’
set but not used [-Wunused-but-set-variable]

It is never used, and so can be removed.

Signed-off-by: yu kuai <yukuai3@huawei.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191226121207.2099-1-yukuai3@huawei.com
drivers/gpu/drm/bridge/cdns-dsi.c

index 3a5bd4e7fd1e3b8ce257cb05ca52591f884fdfff..29b3b07bb2184db1fd296036265fe5e2b88cd7e0 100644 (file)
@@ -785,13 +785,12 @@ static void cdns_dsi_bridge_enable(struct drm_bridge *bridge)
        unsigned long tx_byte_period;
        struct cdns_dsi_cfg dsi_cfg;
        u32 tmp, reg_wakeup, div;
-       int bpp, nlanes;
+       int nlanes;
 
        if (WARN_ON(pm_runtime_get_sync(dsi->base.dev) < 0))
                return;
 
        mode = &bridge->encoder->crtc->state->adjusted_mode;
-       bpp = mipi_dsi_pixel_format_to_bpp(output->dev->format);
        nlanes = output->dev->lanes;
 
        WARN_ON_ONCE(cdns_dsi_check_conf(dsi, mode, &dsi_cfg, false));