HomeFreeBSD

Fix enum warning in isci

Description

Fix enum warning in isci

This fixes a clang 19 warning:

sys/dev/isci/scil/scif_sas_smp_remote_device.c:197:26: error: comparison of different enumeration types ('SCI_IO_STATUS' (aka 'enum _SCI_IO_STATUS') and 'enum _SCI_STATUS') [-Werror,-Wenum-compare]
  197 |    if (completion_status == SCI_FAILURE_RETRY_REQUIRED)
      |        ~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~

The completion_status variable is of type SCI_IO_STATUS, not
SCI_STATUS. In this case, we can seamlessly replace the value with
SCI_IO_FAILURE_RETRY_REQUIRED, which is numerically equal to
SCI_FAILURE_RETRY_REQUIRED.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 31 2024, 11:14 AM
Parents
rG67be1e195acf: Fix enum warning in iavf
Branches
Unknown
Tags
Unknown