scsi: core: raid_class: Remove raid_component_add()
authorZhu Wang <wangzhu9@huawei.com>
Tue, 22 Aug 2023 01:52:54 +0000 (01:52 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2023 01:34:28 +0000 (21:34 -0400)
commit60c5fd2e8f3c42a5abc565ba9876ead1da5ad2b7
tree283f75ad0ee46dffe3cd59cf84be8bd2135c9875
parentc422fbd5cb58c9a078172ae1e9750971b738a197
scsi: core: raid_class: Remove raid_component_add()

The raid_component_add() function was added to the kernel tree via patch
"[SCSI] embryonic RAID class" (2005). Remove this function since it never
has had any callers in the Linux kernel. And also raid_component_release()
is only used in raid_component_add(), so it is also removed.

Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
Link: https://lore.kernel.org/r/20230822015254.184270-1-wangzhu9@huawei.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Fixes: 04b5b5cb0136 ("scsi: core: Fix possible memory leak if device_add() fails")
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/raid_class.c
include/linux/raid_class.h