]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Polish intel_tv_mode_valid()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Oct 2019 15:46:29 +0000 (18:46 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 Oct 2019 14:21:48 +0000 (17:21 +0300)
commit15de0889b0c905a64d6f0fbc765a25d7899a560b
tree969f36a8f05aaaf59eaa48714fcd7ea2a1a93c6b
parent74f1d78965ee16a2617d245fd1f7e40964c0d562
drm/i915: Polish intel_tv_mode_valid()

Drop the tv_mode NULL check since intel_tv_mode_find() never
actually returns NULL, and flip the condition around so that
the MODE_OK case is at the end, which is customary to all
the other .mode_valid() implementations.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191001154629.11063-2-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_tv.c