aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaolin Wang2020-07-13 14:25:21 +0800
committerChristoph Hellwig2020-07-29 07:45:18 +0200
commit5887450b69e72d4b472a7d049773f6a01bc24cd7 (patch)
tree2e51d565a3abc69ac051ed19cd274d8209031cd1
parenteca9e8271e596b73e3ccefdcd26eb85b46b21a34 (diff)
nvme: remove redundant validation in nvme_start_ctrl()
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>
-rw-r--r--drivers/nvme/host/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 5fb5e8ba531b..f49085bcaa42 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -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);