drm/imx/dcss: fix unused but set variable warnings
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Fri, 11 Sep 2020 01:44:14 +0000 (09:44 +0800)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 21 Sep 2020 15:29:32 +0000 (17:29 +0200)
commit523be44c334bc4e4c014032738dc277b8909d009
treec5c640f483ff4d5dce412d9029f6b2803682e82e
parent089d83418914abd4d908db117d9a3eca7f51a68c
drm/imx/dcss: fix unused but set variable warnings

Fix unused but set variable warning building with `make W=1`:

drivers/gpu/drm/imx/dcss/dcss-plane.c:270:6: warning:
 variable â€˜pixel_format’ set but not used [-Wunused-but-set-variable]
  u32 pixel_format;
      ^~~~~~~~~~~~

Fixes: 9021c317b770 ("drm/imx: Add initial support for DCSS on iMX8MQ")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200911014414.4663-1-bobo.shaobowang@huawei.com
drivers/gpu/drm/imx/dcss/dcss-plane.c