summaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-06-14 14:17:16 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-29 14:03:47 +0200
commit807464d8a7326e1025a2f392bf41636b0809d6da (patch)
treeb65b691b7679bbf170a2eaa5354363d23a2c7d33 /include/hw
parent0ead93120eb7bd770b32adc00b5ec1ee721626dc (diff)
downloadqemu-807464d8a7326e1025a2f392bf41636b0809d6da.zip
serial: make tsr_retry unsigned
It can never become negative; reflect this in the type of the field and simplify the conditions. Tested-by: Bret Ketchum <bcketchum@gmail.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/char/serial.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h
index 15beb6b45c..6a322eb22e 100644
--- a/include/hw/char/serial.h
+++ b/include/hw/char/serial.h
@@ -55,7 +55,7 @@ struct SerialState {
int last_break_enable;
int it_shift;
int baudbase;
- int tsr_retry;
+ uint32_t tsr_retry;
uint32_t wakeup;
/* Time when the last byte was successfully sent out of the tsr */