diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-07-24 19:03:09 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-07-24 19:03:09 +0000 |
commit | 4980d385396dc5dfc806ae38ac3c0ec0f34b3d4c (patch) | |
tree | e531ac87a5d6707041eb5976ec5ec6667ccc181a /sys/dev/ic | |
parent | b1c01e55db94fe84870a895ad9734fa5b135cd25 (diff) |
the softc sc_lock lockmgr lock is unused, so remove it.
ok krw@, dlg@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/twe.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/twevar.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c index a6f8c79ae28..5b00863c69f 100644 --- a/sys/dev/ic/twe.c +++ b/sys/dev/ic/twe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: twe.c,v 1.28 2007/10/20 16:10:09 krw Exp $ */ +/* $OpenBSD: twe.c,v 1.29 2008/07/24 19:03:08 thib Exp $ */ /* * Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved. @@ -181,8 +181,6 @@ twe_attach(sc) TAILQ_INIT(&sc->sc_free_ccb); TAILQ_INIT(&sc->sc_done_ccb); - lockinit(&sc->sc_lock, PWAIT, "twelk", 0, 0); - pa = sc->sc_cmdmap->dm_segs[0].ds_addr + sizeof(struct twe_cmd) * (TWE_MAXCMDS - 1); for (cmd = (struct twe_cmd *)sc->sc_cmds + TWE_MAXCMDS - 1; diff --git a/sys/dev/ic/twevar.h b/sys/dev/ic/twevar.h index 5ffce90ed99..b0e0f48036c 100644 --- a/sys/dev/ic/twevar.h +++ b/sys/dev/ic/twevar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: twevar.h,v 1.7 2005/09/15 05:33:39 krw Exp $ */ +/* $OpenBSD: twevar.h,v 1.8 2008/07/24 19:03:08 thib Exp $ */ /* * Copyright (c) 2000 Michael Shalayeff @@ -52,7 +52,6 @@ struct twe_softc { struct device sc_dev; void *sc_ih; struct scsi_link sc_link; - struct lock sc_lock; struct proc *sc_thread; int sc_thread_on; |