From aa4f6a8f1c5e2b8c5b6472e8c48d7d099763852b Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Wed, 6 Nov 2024 21:20:38 -0800 Subject: [PATCH] Cleanup --- elks/arch/i86/drivers/block/directfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elks/arch/i86/drivers/block/directfd.c b/elks/arch/i86/drivers/block/directfd.c index 770db78e0..bd1cfa889 100644 --- a/elks/arch/i86/drivers/block/directfd.c +++ b/elks/arch/i86/drivers/block/directfd.c @@ -732,7 +732,7 @@ static void rw_interrupt(void) if (use_cache) { cache_drive = current_drive; /* cache now valid */ start = (unsigned int)req->rq_sector; - cache_start = FULL_TRACK? start - sector: start; + cache_start = (FULL_TRACK? start - sector: start); cache_numsectors = numsectors; cache_offset = (char *)(((start - cache_start) << 9) + CACHE_OFF); DEBUG("rd %04x:%04x->%08lx:%04x;", CACHE_SEG, cache_offset,