devvmx: remove unncessary locking in gotcmd() sleep test function
This commit is contained in:
parent
682414ce0d
commit
18b3847aef
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue