PCI: pciehp: Simplify pcie_poll_cmd()
authorYijing Wang <wangyijing@huawei.com>
Fri, 19 Jun 2015 07:57:45 +0000 (15:57 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 16 Jul 2015 03:03:33 +0000 (22:03 -0500)
commitac10836b681289f7e430e52b106a209bbdcaa75e
treed75f5e273236d2a707867d81c9b288a767d4afa9
parenta6ed1f4e94e1883742ac79f09f9754ffacfae456
PCI: pciehp: Simplify pcie_poll_cmd()

Move first slot status read into while to simplify code.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp_hpc.c