HomeFreeBSD

if_enc(4): Make enc_add_hhooks() void

Description

if_enc(4): Make enc_add_hhooks() void

As for the consumer enc_add_hhooks(), hhook_add_hook() will never
fail for the given parameters. Meanwhile, to build the module if_enc(4),
at least option INET or INET6 is required, so no need for the error
EPFNOSUPPORT.

No functional change intended.

Reviewed by: ae
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D46770

(cherry picked from commit 7643141e9314f1eac0d9ac08457410509e6829ad)
(cherry picked from commit d6374ee0517f8d991eafe022e2027dd1e64a2ad1)

Details

Provenance
zleiAuthored on Oct 1 2024, 3:28 PM
Reviewer
ae
Differential Revision
D46770: if_enc(4): Make enc_add_hhooks() never fail
Parents
rGd92fc5d447ae: khelp: Sprinkle const qualifiers where appropriate
Branches
Unknown
Tags
Unknown