[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH] error.c: don't return value for void function

From: Amos Kong
Subject: [Qemu-trivial] [PATCH] error.c: don't return value for void function
Date: Mon, 16 Apr 2012 15:32:49 +0800
User-agent: StGit/0.15

It is invalid to return a value from a function
returning void.

Signed-off-by: Amos Kong <address@hidden>
 error.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/error.c b/error.c
index d3455ab..a52b771 100644
--- a/error.c
+++ b/error.c
@@ -93,7 +93,7 @@ QDict *error_get_data(Error *err)
 void error_set_field(Error *err, const char *field, const char *value)
     QDict *dict = qdict_get_qdict(err->obj, "data");
-    return qdict_put(dict, field, qstring_from_str(value));
+    qdict_put(dict, field, qstring_from_str(value));
 void error_free(Error *err)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]