Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca52bea9 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180615170734.2774-1-ville.syrjala@linux.intel.com


Reviewed-by: default avatarEric Anholt <eric@anholt.net>
parent a65020d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -645,7 +645,7 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,
		if (ret)
		if (ret)
			return ret;
			return ret;


		connectors_mask += BIT(i);
		connectors_mask |= BIT(i);
	}
	}


	/*
	/*