diff mbox

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

Message ID 1465076003-26291-10-git-send-email-marcandre.lureau@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marc-André Lureau June 4, 2016, 9:33 p.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

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

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 qemu-char.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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);
     }