From 8d6ea357d4fd2cc7e23b6608347b51146eb50c77 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 14 May 2017 18:39:58 +0200 Subject: [PATCH] Fixed the stray goto abort's in ide_set_features(), it should now compile. --- src/ide.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ide.c b/src/ide.c index d3beb71ce..6268b38ae 100644 --- a/src/ide.c +++ b/src/ide.c @@ -687,12 +687,18 @@ static int ide_set_features(IDE *ide) switch(mode) { case 0x00: /* PIO default */ - if (submode != 0) goto abort; + if (submode != 0) + { + return 0; + } ide->mdma_mode = -1; break; case 0x01: /* PIO mode */ - if (submode > 2) goto abort; + if (submode > 2) + { + return 0; + } ide->mdma_mode = -1; break;