]> Gentwo Git Trees - linux/.git/commit
scsi: sd: Make sd_revalidate_disk() return void
authorAbinash Singh <abinashsinghlalotra@gmail.com>
Mon, 25 Aug 2025 18:39:40 +0000 (00:09 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 31 Aug 2025 01:18:27 +0000 (21:18 -0400)
commit11e6fb38bde51cba411163f95a32db84d5d220a2
tree6e5bc0f89d247a3e2174ff2f5a9e85a75e6538e1
parentd842da6924a9518346a2042db0d24bc77500efae
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>
drivers/scsi/sd.c