devvmx: remove unncessary locking in gotcmd() sleep test function

This commit is contained in:
cinap_lenrek 2021-05-12 22:24:36 +02:00
parent 682414ce0d
commit 18b3847aef

View file

@ -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