]> 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)
commit0499fc4320fdd676ca6c79f97f7cdf2649c63db8
tree68406f79ead2f5bb488485ca190bf5a535712269
parent5d6bf3bb0c3b86036313792f1af5c7c010d14de9
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