diff --git a/src/chipset/intel_4x0.c b/src/chipset/intel_4x0.c index 4aa8ec87c..43ab5f8b3 100644 --- a/src/chipset/intel_4x0.c +++ b/src/chipset/intel_4x0.c @@ -162,10 +162,9 @@ i4x0_write(int func, int addr, uint8_t val, void *priv) case INTEL_440FX: regs[0x07] &= ~(val & 0xf9); break; - - case INTEL_440BX: case INTEL_440ZX - regs[0x07] &= ~(val & 0xf0); - break; + case INTEL_440BX: case INTEL_440ZX: + regs[0x07] &= ~(val & 0xf0); + break; } break; case 0x0d: diff --git a/src/disk/hdc_ide.c b/src/disk/hdc_ide.c index ca4cffb39..3e6c4a6f1 100644 --- a/src/disk/hdc_ide.c +++ b/src/disk/hdc_ide.c @@ -1953,7 +1953,7 @@ ide_callback(void *priv) ((ide->command >= WIN_SEEK) && (ide->command <= 0x7F))) { if (ide->type != IDE_HDD) goto abort_cmd; - if ((ide->command >= WIN_SEEK) && (ide->command <= 0x7F) && !ide_lba) { + if ((ide->command >= WIN_SEEK) && (ide->command <= 0x7F) && !ide->lba) { if ((ide->cylinder >= ide->tracks) || (ide->head >= ide->hpc) || !ide->sector || (ide->sector > ide->spt)) goto id_not_found;