kevent: annotate unused stack local
This commit is contained in:
parent
c78ee89370
commit
56410d49b1
@ -751,14 +751,12 @@ static void
|
||||
filt_timerdetach(struct knote *kn)
|
||||
{
|
||||
struct kq_timer_cb_data *kc;
|
||||
#ifdef INVARIANTS
|
||||
unsigned int old;
|
||||
#endif
|
||||
unsigned int old __unused;
|
||||
|
||||
kc = kn->kn_ptr.p_v;
|
||||
callout_drain(&kc->c);
|
||||
free(kc, M_KQUEUE);
|
||||
DBGSET(old, atomic_fetchadd_int(&kq_ncallouts, -1));
|
||||
old = atomic_fetchadd_int(&kq_ncallouts, -1);
|
||||
KASSERT(old > 0, ("Number of callouts cannot become negative"));
|
||||
kn->kn_status |= KN_DETACHED; /* knlist_remove sets it */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user