~mcf/plan9front

83a1121ffbcde67ce6e2c6e5299756bccef3f5ed — 5 months ago ad74fd4
devvmx: remove unncessary locking in gotcmd() sleep test function
1 files changed, 2 insertions(+), 8 deletions(-)

M sys/src/9/pc/devvmx.c
M sys/src/9/pc/devvmx.c => sys/src/9/pc/devvmx.c +2 -8
@@ 1522,14 1522,8 @@ cmdextrap(VmCmd *, va_list va)
static int
gotcmd(void *vmxp)
{
	int rc;
	Vmx *vmx;

	vmx = vmxp;
	ilock(&vmx->cmdlock);
	rc = vmx->firstcmd != nil;
	iunlock(&vmx->cmdlock);
	return rc;
	Vmx *vmx = vmxp;
	return vmx->firstcmd != nil;
}

static void