disk/ahci: Fix device_map_range argument.
Argument is not used on x86, hence it's gone unnoticed. Found by: Coverity scan.
This commit is contained in:
parent
7d97335942
commit
2a8200bba8
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ grub_ahci_pciinit (grub_pci_device_t dev,
|
||||||
| GRUB_PCI_COMMAND_MEM_ENABLED);
|
| GRUB_PCI_COMMAND_MEM_ENABLED);
|
||||||
|
|
||||||
hba = grub_pci_device_map_range (dev, bar & GRUB_PCI_ADDR_MEM_MASK,
|
hba = grub_pci_device_map_range (dev, bar & GRUB_PCI_ADDR_MEM_MASK,
|
||||||
sizeof (hba));
|
sizeof (*hba));
|
||||||
grub_dprintf ("ahci", "dev: %x:%x.%x\n", dev.bus, dev.device, dev.function);
|
grub_dprintf ("ahci", "dev: %x:%x.%x\n", dev.bus, dev.device, dev.function);
|
||||||
|
|
||||||
grub_dprintf ("ahci", "tfd[0]: %x\n",
|
grub_dprintf ("ahci", "tfd[0]: %x\n",
|
||||||
|
|
Loading…
Reference in a new issue