From ff5e00510cad179707ec54ef45a5dfe38c32e616 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 7 Dec 2012 11:25:58 -0500 Subject: floppy: Minor - reduce handle_0e code size when CONFIG_FLOPPY is disabled. Signed-off-by: Kevin O'Connor --- src/floppy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/floppy.c b/src/floppy.c index f508559..e9f8916 100644 --- a/src/floppy.c +++ b/src/floppy.c @@ -581,9 +581,9 @@ process_floppy_op(struct disk_op_s *op) void VISIBLE16 handle_0e(void) { - debug_isr(DEBUG_ISR_0e); if (! CONFIG_FLOPPY) - goto done; + return; + debug_isr(DEBUG_ISR_0e); if ((inb(PORT_FD_STATUS) & 0xc0) != 0xc0) { outb(0x08, PORT_FD_DATA); // sense interrupt status @@ -597,7 +597,6 @@ handle_0e(void) u8 frs = GET_BDA(floppy_recalibration_status); SET_BDA(floppy_recalibration_status, frs | FRS_TIMEOUT); -done: eoi_pic1(); } -- cgit v1.1