Searched hist:a2a59faa (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/scsi/libsas/ |
H A D | sas_internal.h | a2a59faa Fri Feb 25 04:57:36 CST 2022 John Garry <john.garry@huawei.com> scsi: libsas: Use bool for queue_work() return code
Function queue_work() returns a bool, so use a bool to hold this value for the return code from callers, which should make the code a tiny bit more clear.
Also take this opportunity to condense the code of the those callers, such as sas_queue_work(), as suggested by Damien.
Link: https://lore.kernel.org/r/1645786656-221630-3-git-send-email-john.garry@huawei.com Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
H A D | sas_event.c | a2a59faa Fri Feb 25 04:57:36 CST 2022 John Garry <john.garry@huawei.com> scsi: libsas: Use bool for queue_work() return code
Function queue_work() returns a bool, so use a bool to hold this value for the return code from callers, which should make the code a tiny bit more clear.
Also take this opportunity to condense the code of the those callers, such as sas_queue_work(), as suggested by Damien.
Link: https://lore.kernel.org/r/1645786656-221630-3-git-send-email-john.garry@huawei.com Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|