git: 9front

Download patch

ref: d7d7e75ce6fb6db7978a3dc7ddb2f8ad89e45937
parent: 37e86e041c8b51948c49d50f6bc9fee4e8a19fcb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed May 12 18:24:36 EDT 2021

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

--- a/sys/src/9/pc/devvmx.c
+++ b/sys/src/9/pc/devvmx.c
@@ -1522,14 +1522,8 @@
 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
--