]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI/AER: Simplify add_error_device()
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 22 May 2025 23:21:23 +0000 (18:21 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 May 2025 16:11:45 +0000 (11:11 -0500)
commitd72bae423004aa7b4d94c34a7fd0b48b64305a08
tree3020d018138aa2f727745faac6dd2602f6c109f6
parent94bc15c3484aa1dbbd01aee8f9eaa5dc347a01a8
PCI/AER: Simplify add_error_device()

Return -ENOSPC error early so the usual path through add_error_device() is
the straightline code.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20250522232339.1525671-18-helgaas@kernel.org
drivers/pci/pcie/aer.c