remove extra parentheses in return statement
[dpdk.git] / app / test / test_kni.c
index 9dad988..7243ade 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
@@ -625,7 +625,7 @@ test_kni(void)
                                "a never used name string\n");
                goto fail;
        }
-
+       ret = 0;
 
 fail:
        rte_eth_dev_stop(port_id);