]> git.lizzy.rs Git - plan9front.git/commitdiff
devvmx: remove unncessary locking in gotcmd() sleep test function
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 12 May 2021 20:24:36 +0000 (22:24 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 12 May 2021 20:24:36 +0000 (22:24 +0200)
sys/src/9/pc/devvmx.c

index ba6f596e7f046cfe60a8963f5840801d1379a7da..304f70a43d53d77cbd6d99274ad44daa209e639f 100644 (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