ethernet: fix coverity warning