mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
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
(cherry picked from commit 1bd66fac35ec27fa64d6158f82fdcbdc26098679)
This commit is contained in:
parent
2b05d46dc3
commit
7ffa2d91fb
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ SCI_STATUS scif_sas_smp_remote_device_decode_smp_response(
|
|||
|
||||
//if Core set the status of this io to be RETRY_REQUIRED, we should
|
||||
//retry the IO without even decode the response.
|
||||
if (completion_status == SCI_FAILURE_RETRY_REQUIRED)
|
||||
if (completion_status == SCI_IO_FAILURE_RETRY_REQUIRED)
|
||||
{
|
||||
scif_sas_smp_remote_device_continue_current_activity(
|
||||
fw_device, fw_request, SCI_FAILURE_RETRY_REQUIRED
|
||||
|
|
|
|||
Loading…
Reference in a new issue