nvme: tcp: remove unnecessary goto statement
authorGuixin Liu <kanie@linux.alibaba.com>
Sun, 31 Dec 2023 06:56:44 +0000 (14:56 +0800)
committerKeith Busch <kbusch@kernel.org>
Wed, 3 Jan 2024 16:09:39 +0000 (08:09 -0800)
commitef184b8844bf98a2a80fab8eecda1489aed5d97f
treee7a2f2b026921b1165b381206e93b3fa07eb2185
parent75011bd0f9c55db523242f9f9a0b0b826165f14b
nvme: tcp: remove unnecessary goto statement

There is no requirement to call nvme_tcp_free_queue() for queue
deallocation if the pskid is null or the queue allocation fails, as
the NVME_TCP_Q_ALLOCATED flag would not be set in such scenarios.

Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c