qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC 09/14] qemu-char: use READ_RETRIES


From: marcandre . lureau
Subject: [Qemu-devel] [RFC 09/14] qemu-char: use READ_RETRIES
Date: Sat, 4 Jun 2016 23:33:18 +0200

From: Marc-André Lureau <address@hidden>

The define was introduced with qemu_chr_fe_read_all() in 7b0bfdf52d,
however never used.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 qemu-char.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qemu-char.c b/qemu-char.c
index caa737d..efa1e2a 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -325,13 +325,13 @@ int qemu_chr_fe_write_all(CharDriverState *s, const 
uint8_t *buf, int len)
 
 int qemu_chr_fe_read_all(CharDriverState *s, uint8_t *buf, int len)
 {
-    int offset = 0, counter = 10;
+    int offset = 0, counter = READ_RETRIES;
     int res;
 
     if (!s->chr_sync_read) {
         return 0;
     }
-    
+
     if (s->replay && replay_mode == REPLAY_MODE_PLAY) {
         return replay_char_read_all_load(buf);
     }
-- 
2.7.4




reply via email to

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