HomeFreeBSD

Fix unused variable warning in if_re_netmap.h

Description

Fix unused variable warning in if_re_netmap.h

With clang 15, the following -Werror warning is produced:

sys/dev/netmap/if_re_netmap.h:179:8: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable]
        u_int n;
              ^

The 'n' variable appears to have been a debugging aid that has never
been used for anything, so remove it.

MFC after: 3 days

(cherry picked from commit 8bfedf5852bcb846bfdd2a54989d65cdbb16f7ef)

Details

Provenance
dimAuthored on Jul 21 2022, 7:52 PM
Parents
rG037c0973366c: Adjust ipfw_iface_{init,destroy}() definitions to avoid clang 15 warning
Branches
Unknown
Tags
Unknown