]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: Clean up ATS error handling
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Jul 2015 20:43:27 +0000 (15:43 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Aug 2015 20:57:30 +0000 (15:57 -0500)
commita021f3019db7b40f0fe85b0a64c6be21e3665fbf
treef08e6bd7d8d473719fc2b7bfbe5dbe2b787f2cec
parentc39127dbaf6c267f18d1cac14e2b0ecbfaa52d63
PCI: Clean up ATS error handling

There's no need to BUG() if we enable ATS when it's already enabled.  We
don't need to BUG() when disabling ATS on a device that doesn't support ATS
or if it's already disabled.  If ATS is enabled, certainly we found an ATS
capability in the past, so it should still be there now.

Clean up these error paths.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
drivers/pci/ats.c