HomeFreeBSD

pf: Remove unused return value from (de)hook_pf()

Description

pf: Remove unused return value from (de)hook_pf()

These functions always return 0, which is good, because the code calling
them doesn't handle this error gracefully.

As the functions always succeed remove their return value, and the code
handling their errors (because it was never executed anyway).

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC (“Netgate”’)

Details

Provenance
kpAuthored on Feb 16 2021, 11:40 AM
Parents
rG6b7e592c215f: lex: Do not let input() return 0 when end-of-file is reached
Branches
Unknown
Tags
Unknown