diff options
author | Markus Armbruster <armbru@redhat.com> | 2009-09-25 03:53:50 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:53 -0500 |
commit | c4eaeddc7f6576a95b60143b9d1c4b2682b4119c (patch) | |
tree | 26308c0eb957d23a488e5c5ceeb5e23647a6ae1d /hw/versatilepb.c | |
parent | 95db8fdc137d8cd46ffb7b15d0ff9b6f12612eb9 (diff) | |
download | qemu-c4eaeddc7f6576a95b60143b9d1c4b2682b4119c.tar.gz qemu-c4eaeddc7f6576a95b60143b9d1c4b2682b4119c.tar.bz2 qemu-c4eaeddc7f6576a95b60143b9d1c4b2682b4119c.zip |
Make it obvious that pci_nic_init() can't fail
Before this patch, pci_nic_init() returns NULL when it can't find the
model in pci_nic_models[]. Except this can't happen, because
qemu_check_nic_model_list() just searched for model in
pci_nic_models[], and terminated the program on failure.
Repeating the search here is pointless. Instead, change
qemu_check_nic_model_list() to return the model's array index.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/versatilepb.c')
0 files changed, 0 insertions, 0 deletions