Commit ef184b8
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>1 parent 75011bd commit ef184b8
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
1925 | | - | |
1926 | | - | |
| 1925 | + | |
1927 | 1926 | | |
1928 | 1927 | | |
1929 | 1928 | | |
1930 | 1929 | | |
1931 | 1930 | | |
1932 | | - | |
| 1931 | + | |
1933 | 1932 | | |
1934 | 1933 | | |
1935 | 1934 | | |
| |||
0 commit comments