summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ahci.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-01-04 08:39:22 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-01-04 08:39:22 +0000
commit6c3f8db074d16bf614764a9e2f85e9b2d92f4f86 (patch)
treebb5afaee66c6bab52a7b737b1f0e815bae8e1733 /sys/dev/pci/ahci.c
parent936f893f6d7d21674f7733dbc0f2da4a497dfe86 (diff)
use ISSET instead of &, cos it looks cleaner
Diffstat (limited to 'sys/dev/pci/ahci.c')
-rw-r--r--sys/dev/pci/ahci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c
index d63cd1903f1..c279da9380f 100644
--- a/sys/dev/pci/ahci.c
+++ b/sys/dev/pci/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.31 2006/12/12 02:45:16 dlg Exp $ */
+/* $OpenBSD: ahci.c,v 1.32 2007/01/04 08:39:21 dlg Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -304,7 +304,7 @@ ahci_attach(struct device *parent, struct device *self, void *aux)
DPRINTF(AHCI_D_VERBOSE, "%s: ports implemented: 0x%08x\n",
DEVNAME(sc), reg);
for (i = 0; i < AHCI_MAX_PORTS; i++) {
- if (((1 << i) & reg) == 0) {
+ if (!ISSET(reg, 1 << i)) {
/* dont allocate stuff if the port isnt implemented */
continue;
}