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

cinap_lenrek 2021-05-12 22:24:36 +02:00
parent 682414ce0d
commit 18b3847aef
1 changed files with 2 additions and 8 deletions

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