trs80: correct devhd return value
authorAlan Cox <alan@linux.intel.com>
Sat, 22 Apr 2017 18:07:35 +0000 (19:07 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 22 Apr 2017 18:07:35 +0000 (19:07 +0100)
Kernel/platform-trs80/devhd.c

index a194810..81381c7 100644 (file)
@@ -141,7 +141,7 @@ int hd_transfer(uint8_t minor, bool is_read, uint8_t rawflag)
                        }
                }
        }
-       return 1;
+       return ct << 8;
 bad:
        if (err & 1)
                kprintf("hd%d: error %x\n", minor, hd_err);