[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/13] util/compatfd.c: Fixed style issues
From: |
Thomas Huth |
Subject: |
[PULL 10/13] util/compatfd.c: Fixed style issues |
Date: |
Thu, 1 Apr 2021 15:12:17 +0200 |
From: Mahmoud Mandour <ma.mandourr@gmail.com>
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 | 6 +++---
1 file 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;
--
2.27.0
- [PULL 01/13] MAINTAINERS: Fix tests/migration maintainers, (continued)
- [PULL 01/13] MAINTAINERS: Fix tests/migration maintainers, Thomas Huth, 2021/04/01
- [PULL 04/13] MAINTAINERS: replace Huawei's email to personal one, Thomas Huth, 2021/04/01
- [PULL 02/13] MAINTAINERS: add/replace backups for some s390 areas, Thomas Huth, 2021/04/01
- [PULL 03/13] MAINTAINERS: Drop the lines with Sarah Harris, Thomas Huth, 2021/04/01
- [PULL 05/13] MAINTAINERS: Drop the line with Xiang Zheng, Thomas Huth, 2021/04/01
- [PULL 06/13] MAINTAINERS: add virtio-fs mailing list, Thomas Huth, 2021/04/01
- [PULL 07/13] MAINTAINERS: Mark RX hardware emulation orphan, Thomas Huth, 2021/04/01
- [PULL 08/13] MAINTAINERS: Mark SH-4 hardware emulation orphan, Thomas Huth, 2021/04/01
- [PULL 11/13] docs: Remove obsolete paragraph about config-target.mak, Thomas Huth, 2021/04/01
- [PULL 09/13] qom: Fix default values in help, Thomas Huth, 2021/04/01
- [PULL 10/13] util/compatfd.c: Fixed style issues,
Thomas Huth <=
- [PULL 12/13] docs: Fix typo in the default name of the qemu-system-x86_64 binary, Thomas Huth, 2021/04/01
- [PULL 13/13] device-crash-test: Ignore errors about a bus not being available, Thomas Huth, 2021/04/01
- Re: [PULL 00/13] Updates to MAINTAINERS, docs, and some small fixes, Peter Maydell, 2021/04/02