summaryrefslogtreecommitdiff
path: root/tests/drmdevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/drmdevice.c')
-rw-r--r--tests/drmdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/drmdevice.c b/tests/drmdevice.c
index f1c1cd3a..b4b62d9c 100644
--- a/tests/drmdevice.c
+++ b/tests/drmdevice.c
@@ -142,7 +142,7 @@ main(void)
for (int j = 0; j < DRM_NODE_MAX; j++) {
if (devices[i]->available_nodes & 1 << j) {
printf("--- Opening device node %s ---\n", devices[i]->nodes[j]);
- fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC, 0);
+ fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC);
if (fd < 0) {
printf("Failed - %s (%d)\n", strerror(errno), errno);
continue;