Skip to content

Commit 5887450

Browse files
Baolin WangChristoph Hellwig
authored andcommitted
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 <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent eca9e82 commit 5887450

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4313,8 +4313,7 @@ EXPORT_SYMBOL_GPL(nvme_stop_ctrl);
43134313

43144314
void nvme_start_ctrl(struct nvme_ctrl *ctrl)
43154315
{
4316-
if (ctrl->kato)
4317-
nvme_start_keep_alive(ctrl);
4316+
nvme_start_keep_alive(ctrl);
43184317

43194318
nvme_enable_aen(ctrl);
43204319

0 commit comments

Comments
 (0)