@@ -798,7 +798,7 @@ max_slots_available(struct tcp_hpts_entry *hpts, uint32_t wheel_slot, uint32_t *
798798#ifdef INVARIANTS
799799static void
800800check_if_slot_would_be_wrong (struct tcp_hpts_entry * hpts , struct tcpcb * tp ,
801- uint32_t hptsslot , int line )
801+ uint32_t hptsslot )
802802{
803803 /*
804804 * Sanity checks for the pacer with invariants
@@ -830,13 +830,8 @@ check_if_slot_would_be_wrong(struct tcp_hpts_entry *hpts, struct tcpcb *tp,
830830#endif
831831
832832void
833- #ifdef INVARIANTS
834- __tcp_hpts_insert (struct tcp_hptsi * pace , struct tcpcb * tp , uint32_t usecs ,
835- int32_t line , struct hpts_diag * diag )
836- #else
837833__tcp_hpts_insert (struct tcp_hptsi * pace , struct tcpcb * tp , uint32_t usecs ,
838834 struct hpts_diag * diag )
839- #endif
840835{
841836 struct tcp_hpts_entry * hpts ;
842837 struct timeval tv ;
@@ -934,7 +929,7 @@ __tcp_hpts_insert(struct tcp_hptsi *pace, struct tcpcb *tp, uint32_t usecs,
934929 diag -> inp_hptsslot = tp -> t_hpts_slot ;
935930 }
936931#ifdef INVARIANTS
937- check_if_slot_would_be_wrong (hpts , tp , tp -> t_hpts_slot , line );
932+ check_if_slot_would_be_wrong (hpts , tp , tp -> t_hpts_slot );
938933#endif
939934 if (__predict_true (tp -> t_in_hpts != IHPTS_MOVING ))
940935 tcp_hpts_insert_internal (tp , hpts );
0 commit comments