shithub: riscv

Download patch

ref: 27fb90eb6e2e277849efca83405a75bc3c724b50
parent: 9c1dff3fa9928dd66114f3899d8ede99fad2cd53
author: cinap_lenrek <[email protected]>
date: Sat Jun 13 11:03:56 EDT 2015

vblade, cifs, usbuhci: fix parenthesis

--- a/sys/src/9/pc/usbuhci.c
+++ b/sys/src/9/pc/usbuhci.c
@@ -958,7 +958,7 @@
 	}
 	OUTS(Status, sts & Sall);
 	cmd = INS(Cmd);
-	if(cmd & Crun == 0){
+	if((cmd & Crun) == 0){
 		iprint("uhci %#ux: not running: uhci bug?\n", ctlr->port);
 		/* BUG: should abort everything in this case */
 	}
--- a/sys/src/cmd/cifs/main.c
+++ b/sys/src/cmd/cifs/main.c
@@ -550,7 +550,7 @@
 		break;
 	}
 
-	if(mode & DMEXCL == 0)
+	if((mode & DMEXCL) == 0)
 		access |= 0x10;
 	else
 		access |= 0x40;
--- a/sys/src/cmd/disk/vblade/vblade.c
+++ b/sys/src/cmd/disk/vblade/vblade.c
@@ -398,7 +398,7 @@
 		goto out;
 	}
 
-	if(a->cmdstat&0xf0 == 0x20)
+	if((a->cmdstat&0xf0) == 0x20)
 		lba &= 0xfffffff;
 	switch(a->cmdstat){
 	default: