]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
util/compatfd.c: Fixed style issues
authorMahmoud Mandour <ma.mandourr@gmail.com>
Mon, 15 Mar 2021 10:58:13 +0000 (12:58 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 1 Apr 2021 12:28:39 +0000 (14:28 +0200)
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>
util/compatfd.c

index ee47dd808977d089dc92baed486fed5e3f3200f3..174f39453334b0ca61261d84e964ed5498405363 100644 (file)
@@ -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;