[PATCH openEuler-5.10 118/119] net: stmmac: platform: fix build warning when with !CONFIG_PM_SLEEP