OSDN Git Service

PCI/AER: Use list_first_entry_or_null() to simplify code
authorGeliang Tang <geliangtang@163.com>
Fri, 22 Jan 2016 14:50:19 +0000 (22:50 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 4 Feb 2016 22:03:53 +0000 (16:03 -0600)
commit0e6053dc6e7a42c8ba9ce6e81adb3350c7df4bc8
treec7f492c0ee6ad434231f524176a9ee33b0678563
parent7e8fbdc628760857369af05636ed4ddc4fc8569b
PCI/AER: Use list_first_entry_or_null() to simplify code

Use list_first_entry_or_null() instead of list_empty() + list_entry() to
simplify the code.

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