diff options
| author | Harley Travis <harleytravis123@outlook.com> | 2026-06-30 15:43:15 -0500 |
|---|---|---|
| committer | Harley Travis <harleytravis123@outlook.com> | 2026-06-30 15:43:15 -0500 |
| commit | c653268c508d6c74527744d246658c3c80308bbb (patch) | |
| tree | a0fcc3400f293b6cfa6132e5626bbb3aa1c9afa7 /Kernel/BlkDev/DskFDC.HC | |
| parent | 6bfafd4db0ce6b8577b3c68b3056f2874796176e (diff) | |
| download | templeos-floppy-driver-c653268c508d6c74527744d246658c3c80308bbb.tar.gz | |
Remove unnecessary parentheses from FDCInit
The line where the highest block number is set had unneeded parentheses, as warned by the TempleOS compiler.
Diffstat (limited to 'Kernel/BlkDev/DskFDC.HC')
| -rw-r--r-- | Kernel/BlkDev/DskFDC.HC | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/BlkDev/DskFDC.HC b/Kernel/BlkDev/DskFDC.HC index c4a8e7e..05dc78a 100644 --- a/Kernel/BlkDev/DskFDC.HC +++ b/Kernel/BlkDev/DskFDC.HC @@ -244,7 +244,7 @@ Bool FDCInit(CBlkDev *bd) FDCMotor(bd,OFF); - bd->max_blk=(bd->cyls*bd->heads*bd->spt)-1; + bd->max_blk=bd->cyls*bd->heads*bd->spt-1; if (unlock) BlkDevUnlock(bd); return okay; |
