nvme: introduce a helper function for controller deletion

This patch does not change any functionality but makes the next patch
in this series easier to read.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Bart Van Assche 2019-02-14 14:50:56 -08:00 • committed by Christoph Hellwig
commit a686ed75c0