From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [7234] Use a more natural order
Date: Thu, 23 Apr 2009 18:29:47 +0000 [thread overview]
Message-ID: <E1Lx3gB-0002ko-Iq@cvs.savannah.gnu.org> (raw)
Revision: 7234
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7234
Author: blueswir1
Date: 2009-04-23 18:29:47 +0000 (Thu, 23 Apr 2009)
Log Message:
-----------
Use a more natural order
Modified Paths:
--------------
trunk/hw/xen_console.c
trunk/hw/xen_disk.c
trunk/hw/xen_domainbuild.c
Modified: trunk/hw/xen_console.c
===================================================================
--- trunk/hw/xen_console.c 2009-04-23 13:16:56 UTC (rev 7233)
+++ trunk/hw/xen_console.c 2009-04-23 18:29:47 UTC (rev 7234)
@@ -189,7 +189,7 @@
free(dom);
type = xenstore_read_str(con->console, "type");
- if (!type || 0 != strcmp(type, "ioemu")) {
+ if (!type || strcmp(type, "ioemu" != 0)) {
xen_be_printf(xendev, 1, "not for me (type=%s)\n", type);
return -1;
}
Modified: trunk/hw/xen_disk.c
===================================================================
--- trunk/hw/xen_disk.c 2009-04-23 13:16:56 UTC (rev 7233)
+++ trunk/hw/xen_disk.c 2009-04-23 18:29:47 UTC (rev 7234)
@@ -179,7 +179,7 @@
switch (ioreq->req.operation) {
case BLKIF_OP_READ:
ioreq->prot = PROT_WRITE; /* to memory */
- if (BLKIF_OP_READ != ioreq->req.operation && blkdev->mode[0] != 'w') {
+ if (ioreq->req.operation != BLKIF_OP_READ && blkdev->mode[0] != 'w') {
xen_be_printf(&blkdev->xendev, 0, "error: write req for ro device\n");
goto err;
}
@@ -513,7 +513,7 @@
if (use_aio)
blk_send_response_all(blkdev);
- while ((rc != rp)) {
+ while (rc != rp) {
/* pull request from ring */
if (RING_REQUEST_CONS_OVERFLOW(&blkdev->rings.common, rc))
break;
Modified: trunk/hw/xen_domainbuild.c
===================================================================
--- trunk/hw/xen_domainbuild.c 2009-04-23 13:16:56 UTC (rev 7233)
+++ trunk/hw/xen_domainbuild.c 2009-04-23 18:29:47 UTC (rev 7234)
@@ -137,7 +137,7 @@
int rc;
rc = xc_domain_getinfo(xen_xc, xen_domid, 1, &info);
- if ((1 != rc) || (info.domid != xen_domid)) {
+ if ((rc != 1) || (info.domid != xen_domid)) {
qemu_log("xen: domain %d is gone\n", xen_domid);
goto quit;
}
@@ -186,7 +186,7 @@
rc = read(fd[0], &byte, 1);
switch (rc) {
case -1:
- if (EINTR == errno)
+ if (errno == EINTR)
continue;
qemu_log("%s: Huh? read error: %s\n", __FUNCTION__, strerror(errno));
qemu_running = 0;
next reply other threads:[~2009-04-23 18:29 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 18:29 Blue Swirl [this message]
2009-04-23 18:39 ` [Qemu-devel] [7234] Use a more natural order Andreas Färber
2009-04-23 18:43 ` Blue Swirl
2009-04-23 18:53 ` Lennart Sorensen
2009-04-23 19:01 ` Blue Swirl
2009-04-23 19:10 ` Lennart Sorensen
2009-04-23 19:15 ` Glauber Costa
2009-04-23 19:39 ` Blue Swirl
2009-04-23 19:59 ` Anthony Liguori
2009-04-23 20:20 ` Blue Swirl
2009-04-23 19:57 ` Anthony Liguori
2009-04-23 19:59 ` Lennart Sorensen
2009-04-23 20:03 ` Anthony Liguori
2009-04-23 20:54 ` Lennart Sorensen
2009-04-23 21:15 ` Anthony Liguori
2009-04-23 22:13 ` Jamie Lokier
2009-04-24 0:10 ` Anthony Liguori
2009-04-24 8:18 ` Gerd Hoffmann
2009-04-24 12:14 ` Anthony Liguori
2009-04-24 12:32 ` Stefan Weil
2009-04-23 19:31 ` Blue Swirl
2009-04-23 19:44 ` Lennart Sorensen
2009-04-23 22:46 ` Jamie Lokier
2009-04-24 18:07 ` Lennart Sorensen
2009-04-24 18:58 ` Nathan Froyd
2009-04-23 19:12 ` M. Warner Losh
2009-04-23 19:28 ` Lennart Sorensen
2009-04-23 19:41 ` M. Warner Losh
2009-04-23 19:55 ` Lennart Sorensen
2009-04-23 20:07 ` M. Warner Losh
2009-04-23 21:01 ` Lennart Sorensen
2009-04-23 23:02 ` Jamie Lokier
2009-04-23 22:52 ` Jamie Lokier
2009-04-23 19:37 ` [Qemu-devel] " Jan Kiszka
2009-04-23 19:46 ` Lennart Sorensen
2009-04-23 21:30 ` malc
2009-04-23 22:10 ` Jamie Lokier
2009-04-24 8:09 ` [Qemu-devel] " Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Lx3gB-0002ko-Iq@cvs.savannah.gnu.org \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).