diff options
author | Marcin Kurczewski <mkurczew@gmail.com> | 2015-04-21 11:50:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-21 11:54:14 +0200 |
commit | dedb15a42927f3ac4add91856b9e8696b1fa4fb1 (patch) | |
tree | 724e2cd2a575c2cbd21ea9e34e28b544c84bacd4 /video/out/drm_common.c | |
parent | 7f29172baf7a4ae57eb5af3e3ccd667553aa73f8 (diff) | |
download | mpv-dedb15a42927f3ac4add91856b9e8696b1fa4fb1.tar.bz2 mpv-dedb15a42927f3ac4add91856b9e8696b1fa4fb1.tar.xz |
vo_drm: fix coding style to adhere to guidelines
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: |