app/test: fix kni success code

In the KNI unit test, if all test cases passed, it should
return with 0. This patch fixes the issue of returning
wrong value.

Fixes: fc27caaafd ("kni: remove deprecated functions")

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
This commit is contained in:
Helin Zhang 2015-12-03 11:22:59 +08:00 committed by Thomas Monjalon
parent 02ba92b02c
commit 962973095c

View File

@ -625,7 +625,7 @@ test_kni(void)
"a never used name string\n");
goto fail;
}
ret = 0;
fail:
rte_eth_dev_stop(port_id);