sched_cpu_init: remove unnecessary NULL-checks for clockintr pointers
authorcheloha <cheloha@openbsd.org>
Thu, 31 Aug 2023 19:29:51 +0000 (19:29 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 31 Aug 2023 19:29:51 +0000 (19:29 +0000)
commit3cdedeaec6bdfcd123386c86d818502274a450df
tree098aab5f2b97d4409d75883aee39e42ef8251dc6
parent648823881a320c8e6cf59a421d8f08750a657902
sched_cpu_init: remove unnecessary NULL-checks for clockintr pointers

sched_cpu_init() is only run once per cpu_info struct, so we don't
need these NULL-checks.

The NULL-checks are a vestige of clockintr_cpu_init(), which runs more
than once per CPU and uses the checks to avoid leaking clockintr handles.

Thread: https://marc.info/?l=openbsd-tech&m=169349579804340&w=2

ok claudio@
sys/kern/kern_sched.c