[openEuler-5.10-LTS 453/501] serial: 8250_pci: Refactor the loop in pci_ite887x_init()