aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-12-07 11:25:58 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-12-07 11:25:58 -0500
commitff5e00510cad179707ec54ef45a5dfe38c32e616 (patch)
treecfd5979adb3408cbd5146112e05b45bd2dac86b1
parente8a76b0f225bba5ba9d63ab227e0a37b3beb1059 (diff)
downloadseabios-ff5e00510cad179707ec54ef45a5dfe38c32e616.zip
seabios-ff5e00510cad179707ec54ef45a5dfe38c32e616.tar.gz
seabios-ff5e00510cad179707ec54ef45a5dfe38c32e616.tar.bz2
floppy: Minor - reduce handle_0e code size when CONFIG_FLOPPY is disabled.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/floppy.c5
1 files changed, 2 insertions, 3 deletions
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();
}