stmmac: fix potential division by 0