Fix missing removal of DECLARE_MUTEX_UNLOCKED noticed by Shai.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@535 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Dotan Barak
2008-10-24 00:19:11 +00:00
parent 8e234f8824
commit d7d2f38d5e

View File

@@ -983,7 +983,7 @@ qlaispd_function(void *arg)
static int
scsi_target_enadis(bus_t *bp, uint64_t en, int chan, int lun)
{
DECLARE_MUTEX_LOCKED(rsem);
struct semaphore rsem;
enadis_t ec;
info_t info;
bus_chan_t *bc;
@@ -992,6 +992,7 @@ scsi_target_enadis(bus_t *bp, uint64_t en, int chan, int lun)
BUG_ON(chan < 0 || chan >= bp->h.r_nchannels);
BUG_ON(lun != LUN_ANY && (lun < 0 || lun >= MAX_LUN));
bc = &bp->bchan[chan];
sema_init(&rsem, 0);
if (bp->h.r_type == R_FC) {
if (en == bc->enable) {