diff options
author | Mahmoud Mandour <ma.mandourr@gmail.com> | 2021-03-15 12:58:13 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2021-04-01 14:28:39 +0200 |
commit | 7e3a61ce621b48d4cabc181bcb979ee876e940d0 (patch) | |
tree | 9812300295ad39fd634640a94c68427cd572f202 /util | |
parent | bd74ecd1c39ca7699819ca5cf39c07f50c5f8d5d (diff) | |
download | qemu-7e3a61ce621b48d4cabc181bcb979ee876e940d0.zip |
util/compatfd.c: Fixed style issues
Fixed two styling issues that caused checkpatch.pl errors.
Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210315105814.5188-2-ma.mandourr@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/compatfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/compatfd.c b/util/compatfd.c index ee47dd8089..174f394533 100644 --- a/util/compatfd.c +++ b/util/compatfd.c @@ -20,8 +20,7 @@ #include <sys/syscall.h> #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; |