aboutsummaryrefslogtreecommitdiff
path: root/example/classifier
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2015-05-07 14:34:16 +0300
committerMike Holmes <mike.holmes@linaro.org>2015-05-28 09:39:34 -0400
commit6e489312eed9a1ab22893a9ff29f3c5dddfe54a9 (patch)
tree7e58f34e52982a4cf86ea8b19b1446139ab7a2e0 /example/classifier
parent243e10e47e91caa1019c7e4935722b7767ad2fa0 (diff)
example: classifier: remove extra local init
Worker threads are created with odph_linux_pthread_create() which calls odp_local_init() before entering the function. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Diffstat (limited to 'example/classifier')
-rw-r--r--example/classifier/odp_classifier.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c
index 3cc6738..48fc1ab 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -249,13 +249,6 @@ static void *pktio_receive_thread(void *arg)
appl_args_t *appl = (appl_args_t *)arg;
global_statistics *stats;
-
- /* Init this thread */
- if (odp_init_local()) {
- EXAMPLE_ERR("ODP thread local init failed.\n");
- exit(EXIT_FAILURE);
- }
-
/* Loop packets */
for (;;) {
odp_pktio_t pktio_tmp;