drm/i915/dp: read sink count to a temporary variable first
authorJani Nikula <jani.nikula@intel.com>
Thu, 6 Apr 2017 13:44:17 +0000 (16:44 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 11 Apr 2017 13:54:33 +0000 (16:54 +0300)
commit27dbefb911f2650f473eb98b5de79e88f6559c64
treeebddd5be56b6f01fc6faa845309a1b8b9e886a27
parent010b9b397b32e1fa2d2bd15ec521350a99ac4dc4
drm/i915/dp: read sink count to a temporary variable first

Don't clobber intel_dp->sink_count with the raw value.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/37d3222115172922fcd5ab038238359935bd561f.1491485983.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c