Skip to contentSkip to conversation

tests/qtest/usb-hcd: Remove the empty "init" tests

PATCH In review Thomas Huth 2 participants 2 messages Sep 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/qtest/usb-hcd: Remove the empty "init" tests

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.

---
 tests/qtest/usb-hcd-uhci-test.c | 5 -----
 tests/qtest/usb-hcd-xhci-test.c | 6 ------
 2 files changed, 11 deletions(-)
tests/qtest/usb-hcd-uhci-test.c +0 -5
index 28751f53da..4446555f08 100644
@@ -17,10 +17,6 @@
 
 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")) {
tests/qtest/usb-hcd-xhci-test.c +0 -6
index 80bc039446..0cccfd85a6 100644
@@ -11,11 +11,6 @@
 #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);
Signature · 1 line
2.39.3