All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: Remove redundant validation in nvme_start_ctrl()
@ 2020-07-13  6:25 ` Baolin Wang
  0 siblings, 0 replies; 10+ messages in thread
From: Baolin Wang @ 2020-07-13  6:25 UTC (permalink / raw)
  To: kbusch, axboe, hch, sagi
  Cc: baolin.wang7, linux-nvme, baolin.wang, linux-kernel

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>
---
 drivers/nvme/host/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 3d00ea4..a95e26e 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -4313,8 +4313,7 @@ void nvme_stop_ctrl(struct nvme_ctrl *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);
 
-- 
1.8.3.1


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-07-14 11:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-13  6:25 [PATCH] nvme: Remove redundant validation in nvme_start_ctrl() Baolin Wang
2020-07-13  6:25 ` Baolin Wang
2020-07-13 23:58 ` Chaitanya Kulkarni
2020-07-13 23:58   ` Chaitanya Kulkarni
2020-07-14  3:23   ` Baolin Wang
2020-07-14  3:23     ` Baolin Wang
2020-07-14  4:08     ` Chaitanya Kulkarni
2020-07-14  4:08       ` Chaitanya Kulkarni
2020-07-14 11:17 ` Christoph Hellwig
2020-07-14 11:17   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.