]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: pciehp: Remove error checks when accessing PCIe Capability
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 14 Dec 2013 20:06:07 +0000 (13:06 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 15 Dec 2013 23:02:08 +0000 (16:02 -0700)
commit1a84b99ccbb954ce201024691babfe4d7d9f506f
tree573d68b191df317599f5354981959d3421fbe215
parentcd84d34074f56595fbae7a70f8a85b7d089249d1
PCI: pciehp: Remove error checks when accessing PCIe Capability

There's not much point in checking the return value from every config space
access because the only likely errors are design-time things like unaligned
accesses or invalid register numbers.  The checking clutters the code
significantly, so this patch removes it.

No functional change.

Reference: http://lkml.kernel.org/r/CA+55aFzP4xEbcNmZ+MS0SQ3LrULzSq+dBiT_X9U-bPpR-Ukgrw@mail.gmail.com
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp_hpc.c