From: Alan Cox Date: Sun, 29 Apr 2018 22:14:53 +0000 (+0100) Subject: ubee: devhd silly bug X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c3718a86572cee2558674754e3dceeb06896b1ba;p=FUZIX.git ubee: devhd silly bug --- diff --git a/Kernel/platform-ubee/devhd.c b/Kernel/platform-ubee/devhd.c index 47dacd67..c8907c47 100644 --- a/Kernel/platform-ubee/devhd.c +++ b/Kernel/platform-ubee/devhd.c @@ -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 for future partition tables */ minor >>= 4; while (ct < udata.u_nblock) {