aboutsummaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorRobert Noland <rnoland@wombat.2hip.net>2007-11-25 12:50:07 -0500
committerRobert Noland <rnoland@2hip.net>2007-12-01 14:44:30 -0500
commitb2f8368b571efe610750640c5f10f4c4e0bf7133 (patch)
treeef5d9e72907d54a351e66f7c9bacd8676656381c /shared-core
parent453a295c829dd9e07175f4b2e8fe7e179e5a4d79 (diff)
Clarify order of operations
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index d86f86cc..31df743f 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -1102,7 +1102,7 @@ static int i915_do_cleanup_pageflip(struct drm_device * dev)
if (dev_priv->sarea_priv->pf_current_page & (0x3 << (2 * i))) {
dev_priv->sarea_priv->pf_current_page =
(dev_priv->sarea_priv->pf_current_page &
- ~(0x3 << (2 * i))) | (num_pages - 1) << (2 * i);
+ ~(0x3 << (2 * i))) | ((num_pages - 1) << (2 * i));
planes |= 1 << i;
}