From 7e3a61ce621b48d4cabc181bcb979ee876e940d0 Mon Sep 17 00:00:00 2001 From: Mahmoud Mandour Date: Mon, 15 Mar 2021 12:58:13 +0200 Subject: util/compatfd.c: Fixed style issues Fixed two styling issues that caused checkpatch.pl errors. Signed-off-by: Mahmoud Mandour Reviewed-by: Thomas Huth Message-Id: <20210315105814.5188-2-ma.mandourr@gmail.com> Signed-off-by: Thomas Huth --- util/compatfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/compatfd.c b/util/compatfd.c index ee47dd8..174f394 100644 --- a/util/compatfd.c +++ b/util/compatfd.c @@ -20,8 +20,7 @@ #include #endif -struct sigfd_compat_info -{ +struct sigfd_compat_info { sigset_t mask; int fd; }; @@ -53,8 +52,9 @@ static void *sigwait_compat(void *opaque) len = write(info->fd, (char *)&buffer + offset, sizeof(buffer) - offset); - if (len == -1 && errno == EINTR) + if (len == -1 && errno == EINTR) { continue; + } if (len <= 0) { return NULL; -- cgit v1.1