HomeFreeBSD

Fix unused variable warnings in tcp_hpts.c

Description

Fix unused variable warnings in tcp_hpts.c

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

sys/netinet/tcp_hpts.c:1114:10: error: variable 'paced_cnt' set but not used [-Werror,-Wunused-but-set-variable]
        int32_t paced_cnt = 0;
                ^
sys/netinet/tcp_hpts.c:1112:11: error: variable 'total_slots_processed' set but not used [-Werror,-Wunused-but-set-variable]
        uint64_t total_slots_processed = 0;
                 ^

The 'paced_cnt' variable was in tcp_hpts.c when it was first added, and
the 'total_slots_processed' variable was added in d7955cc0ffdf9, but
both appear to have been debugging aids that have never been used, so
remove them.

MFC after: 3 days

Details

Provenance
dimAuthored on Aug 15 2022, 6:14 PM
Parents
rGdb6b32867d6e: Adjust function definition in tcp_hpts.c to avoid clang 15 warning
Branches
Unknown
Tags
Unknown