ethernet: refactor the redundant code 39/37039/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 30 Aug 2022 11:22:09 +0000 (11:22 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 30 Aug 2022 11:40:37 +0000 (11:40 +0000)
commit966e6ff173f3ef2f426052fa76c9bffc393c53e1
treec9b5168fea623e48bfeb9c9524173866b3e7ae25
parenta9bfef73a7b866eccf2a39b19c12ec46d41e484e
ethernet: refactor the redundant code

Following the discussion during the review
of  b46a4e69e5db18ef792415439d04a0ab22c59386,
remove the redundant ei0. This resulted in realization
that in order for this code to do anything useful,
the ei must be always non-zero, so rewrite the logical
condition for it. Also, make it a conjunction which seems simpler
to understand.

Type: improvement
Change-Id: Ibd7b2a63e4aeaf97eb1a98af8e69aed2ff7dd577
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vnet/ethernet/node.c