diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-10-25 17:44:53 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-10-25 17:44:53 +0000 |
commit | 0850131f4d04aeae03e6eb88c6855497eae1bf87 (patch) | |
tree | 1f7c9066f7e143e96d4740246f53df293c859f78 /sys/dev/ic | |
parent | 65d67de39117edddc54d81c3388e54f1d0546f9d (diff) |
remove dead code; krw@ ok.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ncr53c9x.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/ic/ncr53c9x.c b/sys/dev/ic/ncr53c9x.c index 8a8c2be8977..fd7709bfba4 100644 --- a/sys/dev/ic/ncr53c9x.c +++ b/sys/dev/ic/ncr53c9x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr53c9x.c,v 1.16 2002/10/09 23:43:11 krw Exp $ */ +/* $OpenBSD: ncr53c9x.c,v 1.17 2002/10/25 17:44:52 fgsch Exp $ */ /* $NetBSD: ncr53c9x.c,v 1.56 2000/11/30 14:41:46 thorpej Exp $ */ /* @@ -781,11 +781,7 @@ ncr53c9x_scsi_cmd(xs) ti = &sc->sc_tinfo[sc_link->target]; li = TINFO_LUN(ti, lun); if (li == NULL) { - int wait = M_NOWAIT; - /* Initialize LUN info and add to list. */ - if ((curproc != NULL) && ((flags & SCSI_NOSLEEP) == 0)) - wait = M_WAITOK; if ((li = malloc(sizeof(*li), M_DEVBUF, M_NOWAIT)) == NULL) { return (TRY_AGAIN_LATER); } @@ -924,12 +920,7 @@ ncr53c9x_sched(sc) s = splbio(); li = TINFO_LUN(ti, lun); if (!li) { - int wait = M_NOWAIT; - int flags = ecb->flags; - /* Initialize LUN info and add to list. */ - if ((curproc != NULL) && ((flags & SCSI_NOSLEEP) == 0)) - wait = M_WAITOK; if ((li = malloc(sizeof(*li), M_DEVBUF, M_NOWAIT)) == NULL) { splx(s); continue; |