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>
This commit is contained in:
Mahmoud Mandour 2021-03-15 12:58:13 +02:00 committed by Thomas Huth
parent bd74ecd1c3
commit 7e3a61ce62

View 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;