summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-11-13 13:18:01 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-11-13 13:19:47 +0000
commitb5c1ceaac3c1114ca260f6a785e5fc8891eb1820 (patch)
treeb245ada24923ef8f7321798b50169c309e68df2e
parent7490b9ec263b87b3669096579ec0f0066ec328cb (diff)
sna: Fix typo when comparing '=' ! '=='
Reported-by: Arkadiusz Miskiewicz <arekm@maven.pl> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 6d6e76a8..0ecc11f6 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1769,7 +1769,7 @@ restart:
if (kgem->batch_bo)
kgem->batch = kgem_bo_map__cpu(kgem, kgem->batch_bo);
if (kgem->batch == NULL) {
- int ring = kgem->ring = KGEM_BLT;
+ int ring = kgem->ring == KGEM_BLT;
assert(ring < ARRAY_SIZE(kgem->requests));
if (kgem->batch_bo) {