From 9ecbecb55d38cad3fc3f4a7340a796445940de39 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 8 Mar 2014 16:04:03 +0000 Subject: Check the appropriate struct member for the various SDEV_* quirks. --- sys/dev/ic/qlw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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 @@ -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; -- cgit v1.2.3