aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2024-05-15 10:57:36 +0300
committerMatias Elo <matias.elo@nokia.com>2024-06-05 13:11:11 +0300
commitb7ac334abb6e5456e02a0b047cc4713e735ae563 (patch)
treeb2ebfe0126094d2de03cf4c5d2b00841938df990
parent151676d2d387386fdad315ba54c36003b6757f6a (diff)
linux-dpdk: timer: reduce timer pool name array length by one
ODP_TIMER_POOL_NAME_LEN already includes the null character, so remove the unnecessary increment. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
-rw-r--r--platform/linux-dpdk/odp_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-dpdk/odp_timer.c b/platform/linux-dpdk/odp_timer.c
index a0fd949c5..08689322a 100644
--- a/platform/linux-dpdk/odp_timer.c
+++ b/platform/linux-dpdk/odp_timer.c
@@ -127,7 +127,7 @@ typedef struct timer_pool_s {
} free_timer;
odp_timer_pool_param_t param;
- char name[ODP_TIMER_POOL_NAME_LEN + 1];
+ char name[ODP_TIMER_POOL_NAME_LEN];
int used;
odp_ticketlock_t lock;
uint32_t cur_timers;