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)
commitf1834fd1635be4b530a7e070c04a6158b8f78c0e
treea109f74181a5ce6019911ecd943db49250912ef5
parent62413199cd6d2906c121c2dfa3d7b82fd05f08db
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