diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-03-08 16:04:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-03-08 16:04:03 +0000 |
commit | 9ecbecb55d38cad3fc3f4a7340a796445940de39 (patch) | |
tree | 7e4de060f227340123c966b3102aee1eec398f29 /sys/dev | |
parent | e30cb2ba9162742339d1c5a61f56dbb32a2caf56 (diff) |
Check the appropriate struct member for the various SDEV_* quirks.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/qlw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/qlw.c b/sys/dev/ic/qlw.c index b523c7e8d9f..4425b59384e 100644 --- a/sys/dev/ic/qlw.c +++ b/sys/dev/ic/qlw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qlw.c,v 1.5 2014/03/08 15:13:12 kettenis Exp $ */ +/* $OpenBSD: qlw.c,v 1.6 2014/03/08 16:04:02 kettenis Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -478,11 +478,11 @@ qlw_update_target(struct qlw_softc *sc, int bus, int target) sc->sc_mbox[2] = sc->sc_target[bus][target].qt_params; sc->sc_mbox[2] |= QLW_TARGET_RENEG; sc->sc_mbox[2] &= ~QLW_TARGET_QFRZ; - if (link->flags & SDEV_NOSYNC) + if (link->quirks & SDEV_NOSYNC) sc->sc_mbox[2] &= ~QLW_TARGET_SYNC; - if (link->flags & SDEV_NOWIDE) + if (link->quirks & SDEV_NOWIDE) sc->sc_mbox[2] &= ~QLW_TARGET_WIDE; - if (link->flags & SDEV_NOTAGS) + if (link->quirks & SDEV_NOTAGS) sc->sc_mbox[2] &= ~QLW_TARGET_TAGS; sc->sc_mbox[3] = sc->sc_target[bus][target].qt_sync_period; |