Skip to content

Commit fd9437e

Browse files
authored
Coverity/24.06: fix code scan issues (#884)
Signed-off-by: Ric Li <[email protected]>
1 parent 27481f8 commit fd9437e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/sample/rx_st20p_timing_parser_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void rx_st20p_tp_stat_init(struct rx_tp_stat* stat) {
5252
stat->vrx_min = INT_MAX;
5353
stat->ipt_max = INT_MIN;
5454
stat->ipt_min = INT_MAX;
55-
stat->fpt_min = INT_MIN;
55+
stat->fpt_max = INT_MIN;
5656
stat->fpt_min = INT_MAX;
5757
stat->latency_max = INT_MIN;
5858
stat->latency_min = INT_MAX;

lib/src/udp/udp_rxq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ int mur_client_timedwait(struct mur_client* c, unsigned int timedwait_us,
514514
c->stat_timedwait++;
515515
mt_pthread_mutex_lock(&c->lcore_wake_mutex);
516516
ret = mt_pthread_cond_timedwait_ns(&c->lcore_wake_cond, &c->lcore_wake_mutex,
517-
timedwait_us * NS_PER_US);
517+
(uint64_t)timedwait_us * NS_PER_US);
518518
dbg("%s(%u), timedwait ret %d\n", __func__, q->dst_port, ret);
519519
mt_pthread_mutex_unlock(&c->lcore_wake_mutex);
520520

0 commit comments

Comments
 (0)