PCI/AER: Factor out ERR_NONFATAL status bit clearing
authorOza Pawandeep <poza@codeaurora.org>
Thu, 19 Jul 2018 22:58:06 +0000 (17:58 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Jul 2018 20:27:09 +0000 (15:27 -0500)
commit5b6c09660da8779dd545fa717c2b0cc79d477c9e
treeebc8d20816c9c77d0543de52293bd9b627a6b45b
parente7b0b847de6db161e3917732276e425bc92a2feb
PCI/AER: Factor out ERR_NONFATAL status bit clearing

aer_error_resume() clears all ERR_NONFATAL error status bits.  This is
exactly what pci_cleanup_aer_uncorrect_error_status(), so use that instead
of duplicating the code.

Signed-off-by: Oza Pawandeep <poza@codeaurora.org>
[bhelgaas: split to separate patch]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c