aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2023-10-23 09:37:58 +0100
committerDavid Woodhouse <dwmw@amazon.co.uk>2024-02-02 16:23:47 +0000
commit09c292c9e4db45152e3d5fed28c7b8c60bcb3cd9 (patch)
tree91b8ae809cd2436ea6b49060a102db079bc6d430
parent7db00af63664a0a88ef0cf1c1c9d8c590d9fc796 (diff)
downloadqemu-09c292c9e4db45152e3d5fed28c7b8c60bcb3cd9.zip
qemu-09c292c9e4db45152e3d5fed28c7b8c60bcb3cd9.tar.gz
qemu-09c292c9e4db45152e3d5fed28c7b8c60bcb3cd9.tar.bz2
net: remove qemu_check_nic_model()
There are no callers of this function any more, as they have all been converted to qemu_{create,configure}_nic_device(). Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--include/net/net.h1
-rw-r--r--net/net.c13
2 files changed, 0 insertions, 14 deletions
diff --git a/include/net/net.h b/include/net/net.h
index 728ca96..00ee1af 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -204,7 +204,6 @@ int qemu_set_vnet_le(NetClientState *nc, bool is_le);
int qemu_set_vnet_be(NetClientState *nc, bool is_be);
void qemu_macaddr_default_if_unset(MACAddr *macaddr);
int qemu_show_nic_models(const char *arg, const char *const *models);
-void qemu_check_nic_model(NICInfo *nd, const char *model);
int qemu_find_nic_model(NICInfo *nd, const char * const *models,
const char *default_model);
/**
diff --git a/net/net.c b/net/net.c
index 4651b3f..ffd4b42 100644
--- a/net/net.c
+++ b/net/net.c
@@ -992,19 +992,6 @@ int qemu_show_nic_models(const char *arg, const char *const *models)
return 1;
}
-void qemu_check_nic_model(NICInfo *nd, const char *model)
-{
- const char *models[2];
-
- models[0] = model;
- models[1] = NULL;
-
- if (qemu_show_nic_models(nd->model, models))
- exit(0);
- if (qemu_find_nic_model(nd, models, model) < 0)
- exit(1);
-}
-
int qemu_find_nic_model(NICInfo *nd, const char * const *models,
const char *default_model)
{