diff options
author | 2022-08-30 11:22:09 +0000 | |
---|---|---|
committer | 2022-08-30 11:40:37 +0000 | |
commit | 966e6ff173f3ef2f426052fa76c9bffc393c53e1 (patch) | |
tree | c9b5168fea623e48bfeb9c9524173866b3e7ae25 /test/scapy_handlers/__init__.py | |
parent | a9bfef73a7b866eccf2a39b19c12ec46d41e484e (diff) |
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>
Diffstat (limited to 'test/scapy_handlers/__init__.py')
0 files changed, 0 insertions, 0 deletions