diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-06-15 20:07:34 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-05 22:33:57 +0300 |
commit | ca52bea9fa8007f837ab4685b98979bbffc33416 (patch) | |
tree | af50ba2182fbcae0025a614b5d163d2c58d4a56d /drivers/gpu/drm | |
parent | a65020d0a65da69f504b5ee4d43d255d0875999e (diff) | |
download | blackbird-obmc-linux-ca52bea9fa8007f837ab4685b98979bbffc33416.tar.gz blackbird-obmc-linux-ca52bea9fa8007f837ab4685b98979bbffc33416.zip |
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } /* |