* grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2011-12-12 22:20:14 +01:00
1 parent bf3a385792
commit 48d6e45653
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -305,7 +305,7 @@ grub_ahci_pciinit (grub_pci_device_t dev,
else
grub_dprintf ("ahci", "AHCI is already in OS mode\n");
if (~(hba->global_control & GRUB_AHCI_HBA_GLOBAL_CONTROL_AHCI_EN))
if (!(hba->global_control & GRUB_AHCI_HBA_GLOBAL_CONTROL_AHCI_EN))
grub_dprintf ("ahci", "AHCI is in compat mode. Switching\n");
else
grub_dprintf ("ahci", "AHCI is in AHCI mode.\n");