diff options
author | Paolo Bonzini | 2020-11-03 09:26:05 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-10 18:15:19 +0100 |
commit | 46ee119fb64570c6efdff3342fbec3e86267bda3 (patch) | |
tree | 4c3e4950b8d7db44635e7af88eadb45f74c03932 /softmmu | |
parent | vl: extract softmmu/rtc.c (diff) | |
download | qemu-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 'softmmu')
-rw-r--r-- | softmmu/vl.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c index 4c95537af3..43a0a45b68 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; |