Skip to content

Commit

Permalink
chore: clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
LostAttractor committed Nov 26, 2024
1 parent 681fe50 commit 5e79db6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions control/kern/tproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,15 +1034,15 @@ refresh_udp_conn_state_timer(struct tuples_key *key, bool is_inbound_flow)
if (unlikely(!value))
return NULL;

if ((ret = bpf_timer_init(&value->timer, &udp_conn_state_map,
CLOCK_MONOTONIC)))
if (bpf_timer_init(&value->timer, &udp_conn_state_map,
CLOCK_MONOTONIC))
goto retn;

if ((ret = bpf_timer_set_callback(&value->timer,
refresh_udp_conn_state_timer_cb)))
if (bpf_timer_set_callback(&value->timer,
refresh_udp_conn_state_timer_cb))
goto retn;

if ((ret = bpf_timer_start(&value->timer, TIMEOUT_UDP_CONN_STATE, 0)))
if (bpf_timer_start(&value->timer, TIMEOUT_UDP_CONN_STATE, 0))
goto retn;

retn:
Expand Down

0 comments on commit 5e79db6

Please sign in to comment.