mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
0ead93120e
commit
807464d8a7
2 changed files with 9 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue