From dedb15a42927f3ac4add91856b9e8696b1fa4fb1 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 21 Apr 2015 11:50:44 +0200 Subject: vo_drm: fix coding style to adhere to guidelines --- video/out/drm_common.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'video/out/drm_common.c') 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: -- cgit v1.2.3