]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI: Consolidate "next-function" functions
authorYijing Wang <wangyijing@huawei.com>
Fri, 25 Jan 2013 16:12:31 +0000 (09:12 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Jan 2013 16:21:10 +0000 (09:21 -0700)
commitb1bd58e448f28531207124eea3fd43b81d6f8d06
tree68406f79ead2f5bb488485ca190bf5a535712269
parent31ab247623c541d56b39a0b792cdfe4e94dd2a45
PCI: Consolidate "next-function" functions

There are several next_fn functions (no_next_fn, next_trad_fn,
next_ari_fn); consolidate them in next_fn() to simplify the code.

[bhelgaas: make next_fn() static, rework control flow]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c