OSDN Git Service

drm: Remove set but not used variable 'gem'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 15 Feb 2019 03:35:07 +0000 (03:35 +0000)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 19 Feb 2019 10:08:41 +0000 (11:08 +0100)
commite6049cf122d1568d8000c7f5bd52c99de07ecc65
tree58f57122a137ccedea0cd1dbf148bd838e497cc0
parent1220935be2bb62b3aef6740f29e954bbad9b1845
drm: Remove set but not used variable 'gem'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/vc4/vc4_txp.c: In function 'vc4_txp_connector_atomic_check':
drivers/gpu/drm/vc4/vc4_txp.c:252:29: warning:
 variable 'gem' set but not used [-Wunused-but-set-variable]
  struct drm_gem_cma_object *gem;
                             ^

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190215033507.103232-1-yuehaibing@huawei.com
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/gpu/drm/vc4/vc4_txp.c