]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
net: remove qemu_check_nic_model()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 21 Oct 2023 22:12:19 +0000 (23:12 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 22 Oct 2023 15:21:39 +0000 (16:21 +0100)
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
include/net/net.h
net/net.c

index ce830a47d0bfb8f8b7a977629744b5d9061855c5..15126501901c43e1d815b6e864d7d2a77f29af79 100644 (file)
@@ -202,7 +202,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);
 NICInfo *qemu_find_nic_info(const char *typename, bool match_default,
index 23fd716b98f923ce7c20c3bb3f3e9ba74f8f7869..bdb31dcb278cedf8c26a35305f49cc5e204defe8 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -977,19 +977,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)
 {