diff --git a/src/video/rk.c b/src/video/rk.c index 2b48023..0edf25a 100644 --- a/src/video/rk.c +++ b/src/video/rk.c @@ -368,7 +368,7 @@ int rk_setup(int videoFormat, int width, int height, int redrawRate, void* conte } fd = open("/dev/dri/card0", O_RDWR | O_CLOEXEC); - if (fd >= 0) { + if (fd < 0) { fprintf(stderr, "Unable to open card0: %d\n", errno); return -1; }