From 3df04ac3c63ba6a0ff7417e0f7dd389bc3efb09d Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Wed, 23 Sep 2009 11:24:05 +0100 Subject: Fix coding style issue Replace: if (-1 == foo()) with: if (foo() == -1) While this coding style is not in direct contravention of our currently ratified CODING_STYLE treaty, it could be argued that the Article 3 of the European Convention on Human Rights (prohibiting torture and "inhuman or degrading treatment") reads on the matter. [This commit message was brought to you without humour, as is evidenced by the absence of any emoticons] Signed-off-by: Mark McLoughlin Cc: Avi Kivity Cc: Gerd Hoffmann Signed-off-by: Blue Swirl --- qemu-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu-config.c') diff --git a/qemu-config.c b/qemu-config.c index 39bf6a982..555c7ba09 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -186,7 +186,7 @@ int qemu_set_option(const char *str) return -1; } - if (-1 == qemu_opt_set(opts, arg, str+offset+1)) { + if (qemu_opt_set(opts, arg, str+offset+1) == -1) { fprintf(stderr, "failed to set \"%s\" for %s \"%s\"\n", arg, lists[i]->name, id); return -1; -- cgit v1.2.3-65-gdbad