summaryrefslogtreecommitdiff
path: root/drivers/target
diff options
context:
space:
mode:
authorMax Gurtovoy <maxg@mellanox.com>2020-08-03 18:00:08 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-08-04 20:56:56 -0400
commita8ac78357d9b71a5608c609094ad3b114a46ccd4 (patch)
tree2e2b4f2fcd674d37f2a5492180c265bf111618e9 /drivers/target
parentbf1a28f92a8b00ee8ce48cc11338980e31ddb7b3 (diff)
scsi: target: Make iscsit_register_transport() return void
This function always returns 0. We can make it return void to simplify the code. Also, no caller ever checks the return value of this function. Link: https://lore.kernel.org/r/20200803150008.83920-1-maxg@mellanox.com Signed-off-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/iscsi/iscsi_target_transport.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/target/iscsi/iscsi_target_transport.c b/drivers/target/iscsi/iscsi_target_transport.c
index 036940518bfe..27c85f260459 100644
--- a/drivers/target/iscsi/iscsi_target_transport.c
+++ b/drivers/target/iscsi/iscsi_target_transport.c
@@ -31,7 +31,7 @@ void iscsit_put_transport(struct iscsit_transport *t)
module_put(t->owner);
}
-int iscsit_register_transport(struct iscsit_transport *t)
+void iscsit_register_transport(struct iscsit_transport *t)
{
INIT_LIST_HEAD(&t->t_node);
@@ -40,8 +40,6 @@ int iscsit_register_transport(struct iscsit_transport *t)
mutex_unlock(&transport_mutex);
pr_debug("Registered iSCSI transport: %s\n", t->name);
-
- return 0;
}
EXPORT_SYMBOL(iscsit_register_transport);