diff options
Diffstat (limited to 'video/out/drm_common.c')
-rw-r--r-- | video/out/drm_common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/drm_common.c b/video/out/drm_common.c index cbb0f0182a..c61ad69eba 100644 --- a/video/out/drm_common.c +++ b/video/out/drm_common.c @@ -119,14 +119,12 @@ void vt_switcher_poll(struct vt_switcher *s, int timeout_ms) { .events = POLLIN, .fd = vt_switcher_pipe[0] }, }; poll(fds, 1, timeout_ms); - if (!fds[0].revents) { + if (!fds[0].revents) return; - } unsigned char event; - if (read(fds[0].fd, &event, sizeof(event)) != sizeof(event)) { + if (read(fds[0].fd, &event, sizeof(event)) != sizeof(event)) return; - } switch (event) { case EVT_RELEASE: |