[PATCH 4.19 040/133] of: of_mdio: Correct loop scanning logic