]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/pci/hotplug/pciehp.h
PCI: pciehp: Make various functions void since they can't fail
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 14 Dec 2013 20:06:16 +0000 (13:06 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 15 Dec 2013 23:07:32 +0000 (16:07 -0700)
commit6dae62020f0e6a2ffe424c8cea542fa49d42ec6e
tree57f76e124dcccc1a84dfe0655e213d3a28351e91
parent1a84b99ccbb954ce201024691babfe4d7d9f506f
PCI: pciehp: Make various functions void since they can't fail

These functions:

  pcie_enable_notification()
  pciehp_power_off_slot()
  pciehp_get_power_status()
  pciehp_get_attention_status()
  pciehp_set_attention_status()
  pciehp_get_latch_status()
  pciehp_get_adapter_status()
  pcie_write_cmd()

now always return success, so this patch makes them void and drops the
error-checking code in their callers.

No functional change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_core.c
drivers/pci/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/hotplug/pciehp_pci.c