Commit db91586
committed
ata: libata-scsi: Fix ata_mselect_control_ata_feature() return type
The function ata_mselect_control_ata_feature() has a return type defined
as unsigned int but this function may return negative error codes, which
are correctly propagated up the call chain as integers.
Fix ata_mselect_control_ata_feature() to have the correct int return
type.
While at it, also fix a typo in this function description comment.
Fixes: df60f9c ("scsi: ata: libata: Add ATA feature control sub-page translation")
Cc: [email protected]
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Reviewed-by: Igor Pylypiv <[email protected]>1 parent 399eab7 commit db91586
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3886 | 3886 | | |
3887 | 3887 | | |
3888 | 3888 | | |
3889 | | - | |
| 3889 | + | |
3890 | 3890 | | |
3891 | 3891 | | |
3892 | | - | |
3893 | | - | |
3894 | | - | |
| 3892 | + | |
| 3893 | + | |
3895 | 3894 | | |
3896 | 3895 | | |
3897 | 3896 | | |
| |||
0 commit comments