Skip to content

Commit

Permalink
nvme: remove redundant validation in nvme_start_ctrl()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Baolin Wang authored and Christoph Hellwig committed Jul 29, 2020
1 parent eca9e82 commit 5887450
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/nvme/host/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5887450

Please sign in to comment.