nvmet: remove redundant assignment of error code in nvmet_ns_enable()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 25 Jun 2025 04:16:32 +0000 (21:16 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2025 11:38:07 +0000 (13:38 +0200)
commit2e7dd5c1a8ae9532530474e13dec3371b3db4ee0
treed46cfb370c5c418dd3ce549535b6a3133ad89417
parent3b1eabed272e99bf0291260ed0947ed29e017193
nvmet: remove redundant assignment of error code in nvmet_ns_enable()

Remove the unnecessary ret = -EMFILE; assignment since it is immediately
overwritten by the result of nvmet_bdev_ns_enable() The initial value
(-EMFILE) is redundant because it has no effect on the code logic or
outcome.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/core.c