On Fri, Jan 17, 2020 at 09:27:26AM -0700, Jon Derrick wrote: > + if (dev_is_pci(dev)) { > + struct pci_dev *pdev; > + > + pdev = pci_real_dma_dev(to_pci_dev(dev)); > + dev = &pdev->dev; I think this could be simplified to if (dev_is_pci(dev)) dev = &pci_real_dma_dev(to_pci_dev(dev)->dev;