[PATCH 1/8] drm/ingenic: Remove dead code
Thomas Zimmermann
tzimmermann at suse.de
Sun Aug 8 17:58:00 UTC 2021
Am 08.08.21 um 15:45 schrieb Paul Cercueil:
> 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 <paul at crapouillou.net>
Acked-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---
> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> index d261f7a03b18..e42eb43d8020 100644
> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> @@ -984,9 +984,6 @@ static int ingenic_drm_bind(struct device *dev, bool has_components)
> priv->dma_hwdescs->hwdesc_pal.cmd = JZ_LCD_CMD_ENABLE_PAL
> | (sizeof(priv->dma_hwdescs->palette) / 4);
>
> - if (soc_info->has_osd)
> - priv->ipu_plane = drm_plane_from_index(drm, 0);
> -
> primary = priv->soc_info->has_osd ? &priv->f1 : &priv->f0;
>
> drm_plane_helper_add(primary, &ingenic_drm_plane_helper_funcs);
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210808/2e5ba6da/attachment-0001.sig>
More information about the dri-devel
mailing list