summaryrefslogtreecommitdiff
path: root/tests/prime_udl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/prime_udl.c')
-rw-r--r--tests/prime_udl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/prime_udl.c b/tests/prime_udl.c
index 97aeee01..4e0d9be1 100644
--- a/tests/prime_udl.c
+++ b/tests/prime_udl.c
@@ -154,7 +154,7 @@ int main(int argc, char **argv)
if (ret < 0)
return ret;
- if (udl_fd == -1 && intel_fd == -1) {
+ if (udl_fd == -1 || intel_fd == -1) {
fprintf(stderr,"failed to find intel and udl GPU\n");
return 77;
}