nvme: remove redundant validation in nvme_start_ctrl()
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Mon, 13 Jul 2020 06:25:21 +0000 (14:25 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 29 Jul 2020 05:45:18 +0000 (07:45 +0200)
We've already validated the 'kato' in nvme_start_keep_alive(), thus no
need to validate it again in nvme_start_ctrl(). Remove it.

Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c

index 5fb5e8b..f49085b 100644 (file)
@@ -4313,8 +4313,7 @@ EXPORT_SYMBOL_GPL(nvme_stop_ctrl);
 
 void nvme_start_ctrl(struct nvme_ctrl *ctrl)
 {
-       if (ctrl->kato)
-               nvme_start_keep_alive(ctrl);
+       nvme_start_keep_alive(ctrl);
 
        nvme_enable_aen(ctrl);