From: Ville Syrjälä Date: Fri, 15 Jun 2018 17:07:34 +0000 (+0300) Subject: drm/atomic-helper: Use bitwise or for filling a bitmask X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ca52bea9fa8007f837ab4685b98979bbffc33416;p=openwrt%2Fstaging%2Fblogic.git drm/atomic-helper: Use bitwise or for filling a bitmask Using += to set the bits in a mask looks funny. It works in this case because we never set the same bit twice. But let's switch to |= to make this look more regular. Cc: Maarten Lankhorst Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20180615170734.2774-1-ville.syrjala@linux.intel.com Reviewed-by: Eric Anholt --- diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 8008a7de2e10..7787e0e6bbc6 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -645,7 +645,7 @@ drm_atomic_helper_check_modeset(struct drm_device *dev, if (ret) return ret; - connectors_mask += BIT(i); + connectors_mask |= BIT(i); } /*