nvme-fabrics: remove superfluous nvmf_host_put in nvmf_parse_options
authorHou Pu <houpu.main@gmail.com>
Fri, 9 Jul 2021 02:32:47 +0000 (10:32 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:23 +0000 (14:42 +0200)
commite23439e977ed2b247912c2b5c6945ef1bc380100
tree71ea0dddbefdf0d8330ab1848c1aa79b97ff6ca8
parent1751e97aa940656b5de0e620f02cf193a275e014
nvme-fabrics: remove superfluous nvmf_host_put in nvmf_parse_options

Opts->host is NULL there. It is checked just before. So remove
nvmf_host_put. It is introduced by commit 59a2f3f00fd7 ("nvme: fix
potential memory leak in option parsing").

Signed-off-by: Hou Pu <houpu.main@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c