Fixed the stray goto abort's in ide_set_features(), it should now compile.
This commit is contained in:
10
src/ide.c
10
src/ide.c
@@ -687,12 +687,18 @@ static int ide_set_features(IDE *ide)
|
|||||||
switch(mode)
|
switch(mode)
|
||||||
{
|
{
|
||||||
case 0x00: /* PIO default */
|
case 0x00: /* PIO default */
|
||||||
if (submode != 0) goto abort;
|
if (submode != 0)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
ide->mdma_mode = -1;
|
ide->mdma_mode = -1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x01: /* PIO mode */
|
case 0x01: /* PIO mode */
|
||||||
if (submode > 2) goto abort;
|
if (submode > 2)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
ide->mdma_mode = -1;
|
ide->mdma_mode = -1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user