]> git.lizzy.rs Git - plan9front.git/commitdiff
vblade, cifs, usbuhci: fix parenthesis
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sat, 13 Jun 2015 13:03:56 +0000 (15:03 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sat, 13 Jun 2015 13:03:56 +0000 (15:03 +0200)
sys/src/9/pc/usbuhci.c
sys/src/cmd/cifs/main.c
sys/src/cmd/disk/vblade/vblade.c
sys/src/cmd/hg/hgwebdir.cgi [changed mode: 0644->0755]

index 8b5d54b75fcfb32f64cbb8e7212a519a2d5ca697..f532d071d0a31334e427ec802b71f8fc3ecd3b8e 100644 (file)
@@ -958,7 +958,7 @@ interrupt(Ureg*, void *a)
        }
        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 */
        }
index 78f9dcb9a21fe626163e29b150ba2a96b9a6584d..68dd731383d4a27f999adcfa64befe23af539f71 100644 (file)
@@ -550,7 +550,7 @@ smbcreateopen(Aux *a, char *path, int mode, int perm, int is_create,
                break;
        }
 
-       if(mode & DMEXCL == 0)
+       if((mode & DMEXCL) == 0)
                access |= 0x10;
        else
                access |= 0x40;
index fac1abe33c939e781e0899811744af02d0bfb866..079e126b5796024f00c23321ec9caab19fc05dce 100644 (file)
@@ -398,7 +398,7 @@ serveata(Aoehdr *h, Vblade *vb, int mtu)
                goto out;
        }
 
-       if(a->cmdstat&0xf0 == 0x20)
+       if((a->cmdstat&0xf0) == 0x20)
                lba &= 0xfffffff;
        switch(a->cmdstat){
        default:
old mode 100644 (file)
new mode 100755 (executable)