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

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

View file

@ -1,3 +1,7 @@
2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
Add missing const qualifiers.

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");