]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI/AER: Use match_string() helper to simplify the code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 28 Jan 2019 11:57:28 +0000 (13:57 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Jan 2019 22:32:17 +0000 (16:32 -0600)
commit807ffb1e1eabbcdcd46494ee415317aa80ed415c
treecbfaaac0ff9e4d92fdddfaf5d7a431db263e8b22
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
PCI/AER: Use match_string() helper to simplify the code

match_string() returns the array index of a matching string.  Use it
instead of the open-coded implementation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c