Lines 528-534
SCI_STATUS scif_user_parameters_set(
Link Here
|
528 |
if (scif_parms->sas.is_sata_ncq_enabled != 1 && scif_parms->sas.is_sata_ncq_enabled != 0) |
528 |
if (scif_parms->sas.is_sata_ncq_enabled != 1 && scif_parms->sas.is_sata_ncq_enabled != 0) |
529 |
return SCI_FAILURE_INVALID_PARAMETER_VALUE; |
529 |
return SCI_FAILURE_INVALID_PARAMETER_VALUE; |
530 |
|
530 |
|
531 |
if (scif_parms->sas.max_ncq_depth < 1 && scif_parms->sas.max_ncq_depth > 32) |
531 |
if (scif_parms->sas.max_ncq_depth < 1 || scif_parms->sas.max_ncq_depth > 32) |
532 |
return SCI_FAILURE_INVALID_PARAMETER_VALUE; |
532 |
return SCI_FAILURE_INVALID_PARAMETER_VALUE; |
533 |
|
533 |
|
534 |
if (scif_parms->sas.is_sata_standby_timer_enabled != 1 |
534 |
if (scif_parms->sas.is_sata_standby_timer_enabled != 1 |