summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini2020-11-03 09:26:05 +0100
committerPaolo Bonzini2020-12-10 18:15:19 +0100
commit46ee119fb64570c6efdff3342fbec3e86267bda3 (patch)
tree4c3e4950b8d7db44635e7af88eadb45f74c03932 /include
parentvl: extract softmmu/rtc.c (diff)
downloadqemu-46ee119fb64570c6efdff3342fbec3e86267bda3.tar.gz
qemu-46ee119fb64570c6efdff3342fbec3e86267bda3.tar.xz
qemu-46ee119fb64570c6efdff3342fbec3e86267bda3.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/sysemu.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 18cf586cd0..29c32f9851 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -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 */