nvme-auth: remove redundant auth_work flush
authorSagi Grimberg <sagi@grimberg.me>
Sun, 13 Nov 2022 11:24:21 +0000 (13:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Nov 2022 07:36:36 +0000 (08:36 +0100)
commita2a00d2a66e480c8b225012db538dca6e389a92d
treec1d695e69021de3406d60020244a5228e6fc840b
parentaa36d711e945e65fa87410927800f01878a8faed
nvme-auth: remove redundant auth_work flush

only ctrl deletion calls nvme_auth_free, which was stopped prior in the
teardown stage, so there is no possibility that it should ever run when
nvme_auth_free is called. As a result, we can remove a local chap pointer
variable.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/auth.c