tests/qtest/usb-hcd: Remove the empty "init" tests
authorThomas Huth <thuth@redhat.com>
Thu, 7 Sep 2023 14:39:42 +0000 (16:39 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 Sep 2023 10:08:52 +0000 (13:08 +0300)
These tests do nothing additional compared to the other test,
so let's remove the empty functions to avoid wasting some few
precious test cycles here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/qtest/usb-hcd-uhci-test.c
tests/qtest/usb-hcd-xhci-test.c

index 28751f53daecbc4d2febcc7d338d43c65fc6d7bf..4446555f0835ba19dc34b22abbba5728211d8bcb 100644 (file)
 
 static QOSState *qs;
 
-static void test_uhci_init(void)
-{
-}
-
 static void test_port(int port)
 {
     struct qhc uhci;
@@ -71,7 +67,6 @@ int main(int argc, char **argv)
         return 0;
     }
 
-    qtest_add_func("/uhci/pci/init", test_uhci_init);
     qtest_add_func("/uhci/pci/port1", test_port_1);
     qtest_add_func("/uhci/pci/hotplug", test_uhci_hotplug);
     if (qtest_has_device("usb-storage")) {
index 80bc0394461256bfd86285b4c723d3a136100626..0cccfd85a64ec1e50f86edc89f26097a0b06156d 100644 (file)
 #include "libqtest-single.h"
 #include "libqos/usb.h"
 
-
-static void test_xhci_init(void)
-{
-}
-
 static void test_xhci_hotplug(void)
 {
     usb_test_hotplug(global_qtest, "xhci", "1", NULL);
@@ -54,7 +49,6 @@ int main(int argc, char **argv)
 
     g_test_init(&argc, &argv, NULL);
 
-    qtest_add_func("/xhci/pci/init", test_xhci_init);
     qtest_add_func("/xhci/pci/hotplug", test_xhci_hotplug);
     if (qtest_has_device("usb-uas")) {
         qtest_add_func("/xhci/pci/hotplug/usb-uas", test_usb_uas_hotplug);