]> xenbits.xensource.com Git - seabios.git/commitdiff
floppy: Minor - reduce handle_0e code size when CONFIG_FLOPPY is disabled.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 7 Dec 2012 16:25:58 +0000 (11:25 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 7 Dec 2012 16:25:58 +0000 (11:25 -0500)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/floppy.c

index f508559a54184eb00a43baced59c62515ca446f2..e9f891678fba8367a34607f05902d4a2f1a3885b 100644 (file)
@@ -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();
 }