OSDN Git Service

isa: Tidy support code for isabus_get_fw_dev_path
authorRichard Henderson <rth@twiddle.net>
Mon, 15 Aug 2011 18:59:09 +0000 (11:59 -0700)
committerAvi Kivity <avi@redhat.com>
Mon, 10 Oct 2011 13:29:28 +0000 (15:29 +0200)
commitebf47c24b01857d8b49a892b853bdd13b8e3eb5e
treeb1e2b8738c3e5076fddaaae5d1d1ae5c7ac86c14
parentfebbd7c29a726f8e249aa421b429b3a575d70f38
isa: Tidy support code for isabus_get_fw_dev_path

The only user of ISADevice.ioports is isabus_get_fw_dev_path, and it
only looks at the first entry of the array.  Which suggests that this
entire array+sort operation can be replaced by a simple minimum.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/isa-bus.c
hw/isa.h