]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/atomic-helper: Use bitwise or for filling a bitmask
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Jun 2018 17:07:34 +0000 (20:07 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Jul 2018 19:33:57 +0000 (22:33 +0300)
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>
drivers/gpu/drm/drm_atomic_helper.c

index 8008a7de2e100a857c7fa144b73a8f60293791f2..7787e0e6bbc6b38f8b99c074433d0313096b00ca 100644 (file)
@@ -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);
        }
 
        /*