]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove set but not used variable 'encoder'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 5 Jul 2019 11:31:12 +0000 (11:31 +0000)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Jul 2019 12:37:43 +0000 (15:37 +0300)
commit953c2d11243c683d3bdf17b4b86f84b8ecaebafb
tree7c765ca202315e26b1ab184fc67d88738f5042cb
parent6ae7e2df084050589bda738f42142dc2163645cb
drm/i915: Remove set but not used variable 'encoder'

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

drivers/gpu/drm/i915/display/intel_dp.c: In function 'intel_dp_set_drrs_state':
drivers/gpu/drm/i915/display/intel_dp.c:6623:24: warning:
 variable 'encoder' set but not used [-Wunused-but-set-variable]

It's never used, so can be removed.Also remove related
variable 'dig_port'

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190705113112.64715-1-yuehaibing@huawei.com
drivers/gpu/drm/i915/display/intel_dp.c