From 8fcfe433d89d4d37af16350ce2b4b103b21284ec Mon Sep 17 00:00:00 2001 From: oster Date: Sat, 13 Jul 2002 17:47:44 +0000 Subject: No need to unlock and then immediately relock a mutex. --- sys/dev/raidframe/rf_netbsdkintf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index 2e328732050..f5a9a7f060b 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.123 2002/07/13 17:24:41 oster Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.124 2002/07/13 17:47:44 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -114,7 +114,7 @@ ***********************************************************/ #include -__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.123 2002/07/13 17:24:41 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.124 2002/07/13 17:47:44 oster Exp $"); #include #include @@ -1658,10 +1658,8 @@ raidstart(raidPtr) RF_NORMAL_COMPONENT_UPDATE); raidPtr->numNewFailures--; } - RF_UNLOCK_MUTEX(raidPtr->mutex); /* Check to see if we're at the limit... */ - RF_LOCK_MUTEX(raidPtr->mutex); while (raidPtr->openings > 0) { RF_UNLOCK_MUTEX(raidPtr->mutex); -- cgit