summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-05-11 18:58:59 +0000
committermiod <miod@openbsd.org>2006-05-11 18:58:59 +0000
commitc4a66a1bf1d694ae0724d665bf0f926575cb821f (patch)
tree5366b416eb7e2c92aa9f34c50fb746643f6ea61c /sys/kern/subr_disk.c
parentif (!foo & BAR) bad, if (!(foo & BAR)) better, and I'll have a cookie per (diff)
downloadwireguard-openbsd-c4a66a1bf1d694ae0724d665bf0f926575cb821f.tar.xz
wireguard-openbsd-c4a66a1bf1d694ae0724d665bf0f926575cb821f.zip
One more (!foo & BAR) bogus test.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index f01ccbc10c7..e934708c18c 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.31 2005/12/09 09:09:52 jsg Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.32 2006/05/11 18:58:59 miod Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -276,7 +276,7 @@ void
disk_attach(struct disk *diskp)
{
- if (!diskp->dk_flags & DKF_CONSTRUCTED)
+ if (!ISSET(diskp->dk_flags, DKF_CONSTRUCTED))
disk_construct(diskp, diskp->dk_name);
/*