diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-09-03 12:00:57 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-09-03 12:00:57 +0000 |
commit | e7fac48853ecb5c360c29c074404c3a3b9aedf2a (patch) | |
tree | 3934c1603121506e192fb438601508aec413d881 /sys/dev/pci/kate.c | |
parent | 24817955a71832453708a231054fe5886b9ede5a (diff) |
Use & not && when masking bits.
Diffstat (limited to 'sys/dev/pci/kate.c')
-rw-r--r-- | sys/dev/pci/kate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/kate.c b/sys/dev/pci/kate.c index 5c850644dab..d4a58b9f6b8 100644 --- a/sys/dev/pci/kate.c +++ b/sys/dev/pci/kate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kate.c,v 1.3 2008/04/28 08:57:08 brad Exp $ */ +/* $OpenBSD: kate.c,v 1.4 2008/09/03 12:00:56 jsg Exp $ */ /* * Copyright (c) 2008 Constantine A. Murenin <cnst+openbsd@bugmail.mojo.ru> @@ -158,7 +158,7 @@ kate_attach(struct device *parent, struct device *self, void *aux) } d = pci_conf_read(pa->pa_pc, pa->pa_tag, K_NORTHBRIDGE_CAP_R); - cmpcap = (d >> 12) && 0x3; + cmpcap = (d >> 12) & 0x3; sc->sc_pc = pa->pa_pc; sc->sc_pcitag = pa->pa_tag; |