diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-06-29 09:58:24 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-06-29 09:58:24 +0000 |
commit | b0fe8a9f0a778a554f1ad84d38abcaab655f7c88 (patch) | |
tree | 07b5b39a27e2b9b889a69c543788aa8c5f52dd69 /sys | |
parent | 8db5eb8006e0c27233581ef1c27d7493242567b4 (diff) |
fix a logic error found by lint
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/spdmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/spdmem.c b/sys/dev/spdmem.c index 01af573d8d0..a684fcdee36 100644 --- a/sys/dev/spdmem.c +++ b/sys/dev/spdmem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spdmem.c,v 1.1 2010/03/22 21:20:56 miod Exp $ */ +/* $OpenBSD: spdmem.c,v 1.2 2010/06/29 09:58:23 jsg Exp $ */ /* $NetBSD: spdmem.c,v 1.3 2007/09/20 23:09:59 xtraeme Exp $ */ /* @@ -708,7 +708,7 @@ spdmem_probe(struct spdmem_softc *sc) /* For DDR3 and FBDIMM, verify the CRC */ else if (type <= SPDMEM_MEMTYPE_DDR3SDRAM) { spd_len = spdmem_read(sc, 0); - if (spd_len && SPDMEM_SPDCRC_116) + if (spd_len & SPDMEM_SPDCRC_116) spd_crc_cover = 116; else spd_crc_cover = 125; |