From: Kevin O'Connor Date: Fri, 7 Dec 2012 16:25:58 +0000 (-0500) Subject: floppy: Minor - reduce handle_0e code size when CONFIG_FLOPPY is disabled. X-Git-Tag: rel-1.7.2~12 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ff5e00510cad179707ec54ef45a5dfe38c32e616;p=seabios.git floppy: Minor - reduce handle_0e code size when CONFIG_FLOPPY is disabled. Signed-off-by: Kevin O'Connor --- 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(); }