HomeFreeBSD

Fix unused variable warning in icl_soft.c

Description

Fix unused variable warning in icl_soft.c

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

sys/dev/iscsi//icl_soft.c:886:6: error: variable 'coalesced' set but not used [-Werror,-Wunused-but-set-variable]
        int coalesced, error;
            ^

The 'coalesced' variable is eventually used only in an #if 0'd block,
obviously meant for debugging. Ensure that 'coalesced' is only declared
and used when DEBUG_COALESCED is defined, so the debugging can be easily
turned on later, if desired.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 24 2022, 8:54 PM
Parents
rG8a02ea1dbc13: nl: Correct history
Branches
Unknown
Tags
Unknown