]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove pointless if-else from sdvo code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 21 Jun 2018 17:46:58 +0000 (20:46 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Jul 2018 19:16:56 +0000 (22:16 +0300)
commitb053d5e0f057999ccd9436cda196b7522a32894e
tree0989aabe5570ed785db07e3f48797d27243471f0
parentb1a1e6cb949b33d31df405d4842f6200e6989436
drm/i915: Remove pointless if-else from sdvo code

The return value is a bool so we can just return the result of
the biwise AND. The compiler will take care of the rest.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180621174658.18823-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_sdvo.c