From 1c4e314171154db3d2e8fad004bcb8b2bd5bae0f Mon Sep 17 00:00:00 2001 From: thib Date: Thu, 24 Jul 2008 19:03:08 +0000 Subject: [PATCH] the softc sc_lock lockmgr lock is unused, so remove it. ok krw@, dlg@ --- sys/dev/ic/twe.c | 4 +--- 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; -- 2.20.1