On 3/20/2019 1:36 PM, Jean-Philippe Brucker wrote:
pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ATS); + if (!pos) + return -ENOSYS; +
You don't need this. pci_enable_ats() validates this via. if (!dev->ats_cap) return -EINVAL;
On 3/20/2019 1:36 PM, Jean-Philippe Brucker wrote:
pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ATS); + if (!pos) + return -ENOSYS; +
You don't need this. pci_enable_ats() validates this via. if (!dev->ats_cap) return -EINVAL;