diff options
author | Hannes Reinecke <hare@suse.de> | 2021-04-27 11:30:09 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-01 05:48:20 +0300 |
commit | 8793613de913e03e7c884f4cc56e350bc716431e (patch) | |
tree | ecc53ed3e2636d951e3d810b14a656555aafdc02 /fs/nilfs2/alloc.h | |
parent | 21eccf304b3a16c26fc2878faca4665907a318ec (diff) | |
download | linux-8793613de913e03e7c884f4cc56e350bc716431e.tar.xz |
scsi: core: Fixup calling convention for scsi_mode_sense()
The description for scsi_mode_sense() claims to return the number of valid
bytes on success, which is not what the code does. Additionally there is
no gain in returning the SCSI status, as everything the callers do is to
check against scsi_result_is_good(), which is what scsi_mode_sense() does
already. So change the calling convention to return a standard error code
on failure, and 0 on success, and adapt the description and all callers.
Link: https://lore.kernel.org/r/20210427083046.31620-4-hare@suse.de
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/nilfs2/alloc.h')
0 files changed, 0 insertions, 0 deletions