Check klist emptiness instead of NULL pointer in KNOTE()
authorvisa <visa@openbsd.org>
Fri, 11 Feb 2022 07:27:07 +0000 (07:27 +0000)
committervisa <visa@openbsd.org>
Fri, 11 Feb 2022 07:27:07 +0000 (07:27 +0000)
commit8ebb68641b7e0d195bfb5e976d65df194f085a25
tree7c98a1096d4ac308f7d659eff2d4d2eed31c97d9
parent608b7d9a13f1d8e92a4a4703c2beeba52848e623
Check klist emptiness instead of NULL pointer in KNOTE()

All callers of KNOTE() supply a non-NULL klist argument. Replace the
NULL pointer check with klist emptiness check as a small optimization.

OK mpi@
sys/sys/event.h