Message ID | 1440672150-18303-1-git-send-email-ivan.khoronzhuk@linaro.org |
---|---|
State | Accepted |
Commit | a3508b24c949f1396ab4804259e3ca5e05b385f1 |
Headers | show |
Merged, Maxim. On 08/27/15 13:42, Ivan Khoronzhuk wrote: > Remove several annoying initializations. > > Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> > --- > test/performance/odp_scheduling.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c > index 8d388ff..66f4349 100644 > --- a/test/performance/odp_scheduling.c > +++ b/test/performance/odp_scheduling.c > @@ -345,7 +345,7 @@ static int test_schedule_single(const char *str, int thr, > odp_queue_t queue; > uint64_t t1, t2, cycles, ns; > uint32_t i; > - uint32_t tot = 0; > + uint32_t tot; > > if (create_queue(thr, msg_pool, prio)) > return -1; > @@ -421,11 +421,11 @@ static int test_schedule_many(const char *str, int thr, > { > odp_event_t ev; > odp_queue_t queue; > - uint64_t t1 = 0; > - uint64_t t2 = 0; > + uint64_t t1; > + uint64_t t2; > uint64_t cycles, ns; > uint32_t i; > - uint32_t tot = 0; > + uint32_t tot; > > if (create_queues(thr, msg_pool, prio)) > return -1; > @@ -498,8 +498,8 @@ static int test_schedule_multi(const char *str, int thr, > { > odp_event_t ev[MULTI_BUFS_MAX]; > odp_queue_t queue; > - uint64_t t1 = 0; > - uint64_t t2 = 0; > + uint64_t t1; > + uint64_t t2; > uint64_t cycles, ns; > int i, j; > int num;
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index 8d388ff..66f4349 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -345,7 +345,7 @@ static int test_schedule_single(const char *str, int thr, odp_queue_t queue; uint64_t t1, t2, cycles, ns; uint32_t i; - uint32_t tot = 0; + uint32_t tot; if (create_queue(thr, msg_pool, prio)) return -1; @@ -421,11 +421,11 @@ static int test_schedule_many(const char *str, int thr, { odp_event_t ev; odp_queue_t queue; - uint64_t t1 = 0; - uint64_t t2 = 0; + uint64_t t1; + uint64_t t2; uint64_t cycles, ns; uint32_t i; - uint32_t tot = 0; + uint32_t tot; if (create_queues(thr, msg_pool, prio)) return -1; @@ -498,8 +498,8 @@ static int test_schedule_multi(const char *str, int thr, { odp_event_t ev[MULTI_BUFS_MAX]; odp_queue_t queue; - uint64_t t1 = 0; - uint64_t t2 = 0; + uint64_t t1; + uint64_t t2; uint64_t cycles, ns; int i, j; int num;
Remove several annoying initializations. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> --- test/performance/odp_scheduling.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)