From 7806fa7af8926fc72747f6b8fcbf195b5cd5b95a Mon Sep 17 00:00:00 2001 From: maxv Date: Wed, 20 May 2020 20:59:31 +0000 Subject: [PATCH] future-proof-ness --- sys/kern/kern_synch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index cc3ed62b0047..3c52e0dffa1c 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_synch.c,v 1.347 2020/04/19 20:35:29 ad Exp $ */ +/* $NetBSD: kern_synch.c,v 1.348 2020/05/20 20:59:31 maxv Exp $ */ /*- * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009, 2019, 2020 @@ -69,7 +69,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.347 2020/04/19 20:35:29 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.348 2020/05/20 20:59:31 maxv Exp $"); #include "opt_kstack.h" #include "opt_dtrace.h" @@ -334,7 +334,7 @@ preempt_needed(void) needed = l->l_cpu->ci_want_resched; KPREEMPT_ENABLE(l); - return (bool)needed; + return (needed != 0); } /*