qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Fwd: [PATCH v2 2/5] Change return type of functions that ar


From: Nutan Shinde
Subject: [Qemu-devel] Fwd: [PATCH v2 2/5] Change return type of functions that are named *_exit or *_exitfn in hw/char from int to void
Date: Tue, 12 Apr 2016 23:47:25 +0530

This change is required because the return type of exit(error) function is not used.
This patch only has changes for files in hw/char package.

Signed-off-by: Nutan Shinde <address@hidden>
---
 hw/char/sclpconsole-lm.c | 3 +--
 hw/char/sclpconsole.c    | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c
index 7d4ff81..a9a9703 100644
--- a/hw/char/sclpconsole-lm.c
+++ b/hw/char/sclpconsole-lm.c
@@ -328,9 +328,8 @@ static int console_init(SCLPEvent *event)
     return 0;
 }

-static int console_exit(SCLPEvent *event)
+static console_exit(SCLPEvent *event)
 {
-    return 0;
 }

 static void console_reset(DeviceState *dev)
diff --git a/hw/char/sclpconsole.c b/hw/char/sclpconsole.c
index 45997ff..d179404 100644
--- a/hw/char/sclpconsole.c
+++ b/hw/char/sclpconsole.c
@@ -242,9 +242,8 @@ static void console_reset(DeviceState *dev)
    scon->notify = false;
 }

-static int console_exit(SCLPEvent *event)
+static console_exit(SCLPEvent *event)
 {
-    return 0;
 }

 static Property console_properties[] = {
--
1.9.1



reply via email to

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