]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_kni.c
tile: fix build
[dpdk.git] / app / test / test_kni.c
index 9ef7bcd2a576783ee31974fbf678c142acc346c7..309741cb353e741e4b55864075fce718427c3518 100644 (file)
@@ -237,7 +237,7 @@ test_kni_allocate_lcores(void)
        }
        printf("count: %u\n", count);
 
-       return (count == 2 ? 0 : -1);
+       return count == 2 ? 0 : -1;
 }
 
 static int
@@ -633,8 +633,4 @@ fail:
        return ret;
 }
 
-static struct test_command kni_cmd = {
-       .command = "kni_autotest",
-       .callback = test_kni,
-};
-REGISTER_TEST_COMMAND(kni_cmd);
+REGISTER_TEST_COMMAND(kni_autotest, test_kni);