Commit 4ab7bb9
ata: libata-scsi: Refactor ata_scsiop_maint_in()
Move the check for MI_REPORT_SUPPORTED_OPERATION_CODES from
ata_scsi_simulate() into ata_scsiop_maint_in() to simplify
ata_scsi_simulate() code.
Furthermore, since an rbuff fill actor function returning a non-zero
value causes no data to be returned for the command, directly return
an error (return 1) for invalid command formt after setting the invalid
field in cdb error.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20241022024537.251905-4-dlemoal@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>1 parent 44bdde1 commit 4ab7bb9
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3388 | 3388 | | |
3389 | 3389 | | |
3390 | 3390 | | |
3391 | | - | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
3392 | 3396 | | |
3393 | 3397 | | |
3394 | 3398 | | |
3395 | | - | |
3396 | | - | |
| 3399 | + | |
| 3400 | + | |
3397 | 3401 | | |
3398 | 3402 | | |
3399 | 3403 | | |
| |||
3461 | 3465 | | |
3462 | 3466 | | |
3463 | 3467 | | |
3464 | | - | |
| 3468 | + | |
3465 | 3469 | | |
3466 | 3470 | | |
3467 | 3471 | | |
3468 | | - | |
| 3472 | + | |
| 3473 | + | |
3469 | 3474 | | |
3470 | 3475 | | |
3471 | 3476 | | |
| |||
4377 | 4382 | | |
4378 | 4383 | | |
4379 | 4384 | | |
4380 | | - | |
4381 | | - | |
4382 | | - | |
4383 | | - | |
| 4385 | + | |
4384 | 4386 | | |
4385 | 4387 | | |
4386 | 4388 | | |
| |||
0 commit comments