]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r350063:
authorCy Schubert <cy@FreeBSD.org>
Tue, 23 Jul 2019 02:30:24 +0000 (02:30 +0000)
committerCy Schubert <cy@FreeBSD.org>
Tue, 23 Jul 2019 02:30:24 +0000 (02:30 +0000)
commit03bcdf441fba524d0dfa750d7c72d0055e0fdc04
tree8c40d59c8fc3c8b0472377259d435173a0c75165
parentb1607ab79b6d63e17c9b25b329a405c141108d6b
MFC r350063:

Refactor, removing one compare.

This changes the return code however the caller only tests for 0 and != 0.
One might ask then, why multiple return codes when the caller only tests
for 0 and != 0? From what I can tell, Darren probably passed various
return codes for sake of debugging. The debugging code is long gone
however we can still use the different return codes using DTrace FBT
traces. We can still determine why the compare failed by examining the
differences between the fr1 and fr2 frentry structs, which is a simple
test in DTrace. This allows reducing the number of tests, improving the
code while not affecting our ability to capture information for
diagnostic purposes.
sys/contrib/ipfilter/netinet/fil.c