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

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

drivers/gpu/drm/i915/display/intel_ddi.c: In function 'intel_ddi_get_config':
drivers/gpu/drm/i915/display/intel_ddi.c:3774:29: warning:
 variable 'intel_dig_port' set but not used [-Wunused-but-set-variable]
  struct intel_digital_port *intel_dig_port;

It is never used, so can be removed.

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/20190705113138.65880-1-yuehaibing@huawei.com
drivers/gpu/drm/i915/display/intel_ddi.c