]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libsas: Make sas_notify_{phy,port}_event() return void
authorJohn Garry <john.garry@huawei.com>
Fri, 25 Feb 2022 10:57:35 +0000 (18:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 02:48:29 +0000 (21:48 -0500)
commit73b90afc4581245624f89e155714cb5541250eea
treea109f74181a5ce6019911ecd943db49250912ef5
parentddbda920cfa990cde96df1c812b525601a92d876
scsi: libsas: Make sas_notify_{phy,port}_event() return void

Nobody checks the return codes, so make them return void. Indeed, if the
LLDD cannot send an event, nothing much can be done in the LLDD about it.

Also remove prototype for sas_notify_phy_event() in sas_internal.h, which
should not be there.

Link: https://lore.kernel.org/r/1645786656-221630-2-git-send-email-john.garry@huawei.com
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.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
include/scsi/libsas.h