PCI/AER: Simplify __aer_print_error()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 7 Jul 2020 23:48:17 +0000 (18:48 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 Jul 2020 23:49:10 +0000 (18:49 -0500)
commit0678e3109a3cf438a8d1c8e3c3e58a45a59df262
tree48311cac057bd3ecbf4e038e826f9e80ec064292
parent16d79cd4e23b1964d36c041ab027505ceacbbeeb
PCI/AER: Simplify __aer_print_error()

aer_correctable_error_string[] and aer_uncorrectable_error_string[] have
descriptions of AER error status bits.  Add NULL entries to these tables so
all entries for bits 0-31 are defined.  Then we don't have to check for
ARRAY_SIZE() when decoding a status word, which simplifies
__aer_print_error().

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c