OSDN Git Service

drm/i915: Protect PIPE_CONF_CHECK macros with do {} while(0)
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 16 Mar 2018 18:36:25 +0000 (20:36 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 19 Apr 2018 15:17:47 +0000 (18:17 +0300)
commiteadd2721d080e276f35abc1daab15cddd121e40f
tree14a4e1c9fefd84b79fa403c64e90f072f519718b
parente307126a2c8e792a4b426ee3ab827d1285544e12
drm/i915: Protect PIPE_CONF_CHECK macros with do {} while(0)

Make the PIPE_CONF_CHECK macros a bit more robust by wrapping them
in do {} while(0). Avoids funky sirprises when you try put an 'else'
after a PIPE_CONF_CHECK invocation...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180316183625.16316-1-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #irc
drivers/gpu/drm/i915/intel_display.c