From: Bjorn Helgaas Date: Fri, 17 Jul 2015 20:30:26 +0000 (-0500) Subject: PCI: Rationalize pci_ats_queue_depth() error checking X-Git-Tag: omap-for-v4.3/fixes-merge-window~31^2~3^3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c765399524308ab36777a443ce77e19810a97d7;p=pandora-kernel.git PCI: Rationalize pci_ats_queue_depth() error checking We previously returned -ENODEV for devices that don't support ATS (except that we always returned 0 for VFs, whether or not they support ATS). For consistency, always return -EINVAL (not -ENODEV) if the device doesn't support ATS. Return zero for VFs that support ATS. Signed-off-by: Bjorn Helgaas Reviewed-by: Joerg Roedel --- Reading git-diff-tree failed