]> git.baikalelectronics.ru Git - 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)
commitfdc35f723d693fc9a16da035bd60af69ce1abb41
tree68406f79ead2f5bb488485ca190bf5a535712269
parentc9b5fd8bbb88e6e4f1bcbf65a3ae2ac010aa98e5
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