mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 18:41:48 +00:00
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 <maarten.lankhorst@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180615170734.2774-1-ville.syrjala@linux.intel.com Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
a65020d0a6
commit
ca52bea9fa
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user