nvmet-tcp: make nvmet_tcp_alloc_queue() a void function
authorHannes Reinecke <hare@suse.de>
Thu, 24 Aug 2023 14:39:20 +0000 (16:39 +0200)
committerKeith Busch <kbusch@kernel.org>
Wed, 11 Oct 2023 17:29:59 +0000 (10:29 -0700)
commit4f8cce2d32a3011bff8c8a4bbc69bca5a7bdd030
tree68c8019deaec216e3f231fdb46b1b6f7c87619b9
parent3f123494db725d899fdf990d894648bcc33cf7a3
nvmet-tcp: make nvmet_tcp_alloc_queue() a void function

The return value from nvmet_tcp_alloc_queue() are just used to
figure out if sock_release() need to be called. So this patch
moves sock_release() into nvmet_tcp_alloc_queue() and make it
a void function.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/tcp.c