Skip to content

Commit 4d3b3c9

Browse files
committed
drm/ingenic: Remove dead code
The priv->ipu_plane would get a different value further down the code, without the first assigned value being read first; so the first assignation can be dropped. Signed-off-by: Paul Cercueil <[email protected]> Acked-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c1736b9 commit 4d3b3c9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/ingenic/ingenic-drm-drv.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,6 @@ static int ingenic_drm_bind(struct device *dev, bool has_components)
984984
priv->dma_hwdescs->hwdesc_pal.cmd = JZ_LCD_CMD_ENABLE_PAL
985985
| (sizeof(priv->dma_hwdescs->palette) / 4);
986986

987-
if (soc_info->has_osd)
988-
priv->ipu_plane = drm_plane_from_index(drm, 0);
989-
990987
primary = priv->soc_info->has_osd ? &priv->f1 : &priv->f0;
991988

992989
drm_plane_helper_add(primary, &ingenic_drm_plane_helper_funcs);

0 commit comments

Comments
 (0)