]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Fix new -Wint-in-bool-context gcc compiler warning
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 May 2017 11:06:44 +0000 (13:06 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 18 May 2017 11:32:23 +0000 (14:32 +0300)
commit0ad4dc887d4168448e8c801aa4edd8fe1e0bd534
tree1110e0a1e139f487051ab94f40195c2ba7c01f85
parentd555cb5827d603244969e08444340e3db78c8a37
drm/i915: Fix new -Wint-in-bool-context gcc compiler warning

This commit fixes the following compiler warning:

drivers/gpu/drm/i915/intel_dsi.c: In function ‘intel_dsi_prepare’:
drivers/gpu/drm/i915/intel_dsi.c:1487:23: warning:
    ?: using integer constants in boolean context [-Wint-in-bool-context]
       PORT_A ? PORT_C : PORT_A),

Fixes: f4c3a88e5f04 ("drm/i915: Tighten mmio arrays for MIPI_PORT")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170518110644.9902-1-hdegoede@redhat.com
drivers/gpu/drm/i915/i915_reg.h