ubee: devhd silly bug
authorAlan Cox <alan@linux.intel.com>
Sun, 29 Apr 2018 22:14:53 +0000 (23:14 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 29 Apr 2018 22:14:53 +0000 (23:14 +0100)
Kernel/platform-ubee/devhd.c

index 47dacd6..c8907c4 100644 (file)
@@ -74,7 +74,7 @@ static uint8_t hd_waitready(void)
        do {
                st = hd_status;
                tick++;
-       } while (!(st & 0x40) && !tick);
+       } while (!(st & 0x40) && tick);
        return st;
 }
 
@@ -137,7 +137,7 @@ static int hd_transfer(uint8_t minor, bool is_read, uint8_t rawflag)
        
        /* Get rid of port 58 selector */
        minor &= 0x7F;
-       /* Reserve low bits fo rfuture partition tables */
+       /* Reserve low bits fofuture partition tables */
        minor >>= 4;
 
        while (ct < udata.u_nblock) {