summaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorAbinash Singh <abinashsinghlalotra@gmail.com>2025-08-26 00:09:40 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2025-08-30 21:18:27 -0400
commit11e6fb38bde51cba411163f95a32db84d5d220a2 (patch)
tree6e5bc0f89d247a3e2174ff2f5a9e85a75e6538e1 /rust/helpers
parentd842da6924a9518346a2042db0d24bc77500efae (diff)
scsi: sd: Make sd_revalidate_disk() return void
The sd_revalidate_disk() function currently returns 0 for both success and memory allocation failure. Since none of its callers use the return value, this return code is both unnecessary and potentially misleading. Change the return type of sd_revalidate_disk() from int to void and remove all return value handling. This makes the function semantics clearer and avoids confusion about unused return codes. Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Abinash Singh <abinashsinghlalotra@gmail.com> Link: https://lore.kernel.org/r/20250825183940.13211-4-abinashsinghlalotra@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions