diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ide/ahci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index d0a774b..fcc5476 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1622,9 +1622,7 @@ void ahci_uninit(AHCIState *s) AHCIDevice *ad = &s->dev[i]; for (j = 0; j < 2; j++) { - IDEState *s = &ad->port.ifs[j]; - - ide_exit(s); + ide_exit(&ad->port.ifs[j]); } object_unparent(OBJECT(&ad->port)); } |