[PATCH] drm/atomic-helper: Use bitwise or for filling a bitmask

Eric Anholt eric at anholt.net
Fri Jun 15 23:35:55 UTC 2018


Ville Syrjala <ville.syrjala at linux.intel.com> writes:

> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> 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.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180615/a7f499c9/attachment.sig>


More information about the dri-devel mailing list