]> Git Repo - qemu.git/blobdiff - tests/virtio-net-test.c
coccinelle: Remove unnecessary variables for function return value
[qemu.git] / tests / virtio-net-test.c
index e5c144818eb5ebcc8c70f61d28e8589284cef9ed..f4f6a4ae7affead6ea6fc8f02a9ec2d397890cc0 100644 (file)
@@ -248,8 +248,6 @@ static void hotplug(void)
 
 int main(int argc, char **argv)
 {
-    int ret;
-
     g_test_init(&argc, &argv, NULL);
 #ifndef _WIN32
     qtest_add_data_func("/virtio/net/pci/basic", send_recv_test, pci_basic);
@@ -258,7 +256,5 @@ int main(int argc, char **argv)
 #endif
     qtest_add_func("/virtio/net/pci/hotplug", hotplug);
 
-    ret = g_test_run();
-
-    return ret;
+    return g_test_run();
 }
This page took 0.019605 seconds and 4 git commands to generate.