]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libsas: Use bool for queue_work() return code
authorJohn Garry <john.garry@huawei.com>
Fri, 25 Feb 2022 10:57:36 +0000 (18:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 02:48:30 +0000 (21:48 -0500)
commitce580b23182bcc69d8321d73fccd95c6eb22e4e0
tree75333f96afc73db71b41049c8cd903470a73eed2
parent73b90afc4581245624f89e155714cb5541250eea
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>
drivers/scsi/libsas/sas_event.c
drivers/scsi/libsas/sas_internal.h