summaryrefslogtreecommitdiff
path: root/tests/name_from_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/name_from_fd.c')
-rw-r--r--tests/name_from_fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/name_from_fd.c b/tests/name_from_fd.c
index 24af6e64..52646812 100644
--- a/tests/name_from_fd.c
+++ b/tests/name_from_fd.c
@@ -45,7 +45,7 @@ int main(int argc, char **argv)
char *v;
fd = open("/dev/dri/card0", O_RDWR);
- if (fd == -1)
+ if (fd < 0)
return 0;
v = drmGetDeviceNameFromFd(fd);