diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-14 14:17:16 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-29 14:03:47 +0200 |
commit | 807464d8a7326e1025a2f392bf41636b0809d6da (patch) | |
tree | b65b691b7679bbf170a2eaa5354363d23a2c7d33 /include/hw/char | |
parent | 0ead93120eb7bd770b32adc00b5ec1ee721626dc (diff) |
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/char')
-rw-r--r-- | include/hw/char/serial.h | 2 |
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 */ |