mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
kevent: annotate unused stack local
This commit is contained in:
parent
788390df0a
commit
1c0336c1c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333856
@ -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…
Reference in New Issue
Block a user