aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-03 03:26:05 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-10 12:15:19 -0500
commit46ee119fb64570c6efdff3342fbec3e86267bda3 (patch)
tree4c3e4950b8d7db44635e7af88eadb45f74c03932 /softmmu
parentbf4d4056fb7ef7d629d003a338445db9801aa743 (diff)
downloadqemu-46ee119fb64570c6efdff3342fbec3e86267bda3.zip
qemu-46ee119fb64570c6efdff3342fbec3e86267bda3.tar.gz
qemu-46ee119fb64570c6efdff3342fbec3e86267bda3.tar.bz2
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 'softmmu')
-rw-r--r--softmmu/vl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 4c95537..43a0a45 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -2159,11 +2159,6 @@ Chardev *serial_hd(int i)
return NULL;
}
-int serial_max_hds(void)
-{
- return num_serial_hds;
-}
-
static int parallel_parse(const char *devname)
{
static int index = 0;