summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorDaniel Gomez <da.gomez@samsung.com>2025-12-20 04:45:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-16 16:46:14 +0100
commit7a96ccc82c106b763dd561cb87f9c7261dff4f0d (patch)
tree6e98198c574d7b1fef3480a776b7fc79e2e2a6e9 /drivers/scsi
parent5f62af9fd20bea5e3b543cf69655c043cea298bb (diff)
downloadlinux-next-7a96ccc82c106b763dd561cb87f9c7261dff4f0d.tar.gz
linux-next-7a96ccc82c106b763dd561cb87f9c7261dff4f0d.zip
driver core: attribute_container: change return type to void
attribute_container_register() has always returned 0 since its introduction in commit 06ff5a987e ("Add attribute container to generic device model") in the historical Linux tree [1]. Convert the return type to void and update all callers. This removes dead code where callers checked for errors that could never occur. Link: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git [1] Signed-off-by: Daniel Gomez <da.gomez@samsung.com> Link: https://patch.msgid.link/20251220-dev-attribute-container-linux-scsi-v1-1-d58fcd03bf21@samsung.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_transport_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c
index fe47850a8258..17a4a0918fc4 100644
--- a/drivers/scsi/scsi_transport_spi.c
+++ b/drivers/scsi/scsi_transport_spi.c
@@ -1622,7 +1622,7 @@ static __init int spi_transport_init(void)
error = transport_class_register(&spi_transport_class);
if (error)
return error;
- error = anon_transport_class_register(&spi_device_class);
+ anon_transport_class_register(&spi_device_class);
return transport_class_register(&spi_host_class);
}