From: Marc-André Lureau <marcandre.lur...@redhat.com>

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

Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
 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