commit | 3306067d294f2bd91a9099949eda57ab3a1515b3 | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Tue May 21 09:06:45 2024 -0700 |
committer | Patrick Rohr <prohr@google.com> | Tue May 21 16:16:23 2024 +0000 |
tree | 15f7040a4f5a7f15a2ee2d3f08bcd6416de2f8da | |
parent | 2d33d1b07fbf9ad766fde2a191156aaebf8d3c6e [diff] |
Remove unnecessary checks event.ip is of type InetAddress which is guaranteed to be an instance of either its Inet4Address or Inet6Address subclass. In addition, shouldIgnoreIncompleteNeighbor is called from handleNeighborLost(), which in turn is called from NeighborEventConsumer which ignores all events for neighbors that are not in the watchlist. So both checks are guaranteed to succeed and are therefore unnecessary. Test: TH Change-Id: I1a678ccda8f8c1beaf2509f3c8dabd395090db1f