summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index adff1a81..bfa2e0f0 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -234,7 +234,7 @@ static int open_device(const char *name, unsigned int chipset)
break;
}
}
- if (chipset & chip)
+ if ((chipset & chip) == chip)
return fd;
err: