net/eth: Add an assert() and invert if() statement to simplify code