PCI/AER: Remove duplicate AER severity translation
authorTyler Baicar <tbaicar@codeaurora.org>
Wed, 14 Sep 2016 21:14:45 +0000 (15:14 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 20 Sep 2016 19:35:59 +0000 (14:35 -0500)
commit95c35491f663962e476179076d24d0d2c45a8fb5
treeb0f52b2559fcd4dfda769a49db3b1a91fb8499b6
parent7ece14175376051b18a9b97f0e6125cb8b864155
PCI/AER: Remove duplicate AER severity translation

Currently the AER severity is being translated twice in the code flow for
PCIe errors.  It is first translated in ghes_do_proc() before calling into
the AER driver.  Then it is translated again when the AER driver calls
cper_print_aer().  This causes the severity that is used in
cper_print_aer() to be incorrect.

Remove the second translation that is in cper_print_aer() since this
function is already receiving the correct AER severity.

Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
drivers/pci/pcie/aer/aerdrv_errprint.c
include/linux/aer.h