mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
vl: remove serial_max_hds
serial_hd(i) is NULL if and only if i >= serial_max_hds(). Test serial_hd(i) instead of bounding the loop at serial_max_hds(), thus removing one more function that vl.c is expected to export. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
bf4d4056fb
commit
46ee119fb6
3 changed files with 2 additions and 13 deletions
|
@ -71,10 +71,6 @@ void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict);
|
|||
|
||||
/* Return the Chardev for serial port i, or NULL if none */
|
||||
Chardev *serial_hd(int i);
|
||||
/* return the number of serial ports defined by the user. serial_hd(i)
|
||||
* will always return NULL for any i which is greater than or equal to this.
|
||||
*/
|
||||
int serial_max_hds(void);
|
||||
|
||||
/* parallel ports */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue