projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eca9e82
)
nvme: remove redundant validation in nvme_start_ctrl()
author
Baolin Wang
<baolin.wang@linux.alibaba.com>
Mon, 13 Jul 2020 06:25:21 +0000
(14:25 +0800)
committer
Christoph 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
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/core.c
b/drivers/nvme/host/core.c
index 5fb5e8ba531b63e72f09e6ed0e01003b5c952e5a..f49085bcaa42ab7593110d7709edc5fa660a760f 100644
(file)
--- 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);