[PATCH 7/9] nvme-core: cleanup for nvme_set_latency_tolerance
Chaitanya Kulkarni
kch at nvidia.com
Wed Mar 22 20:36:34 PDT 2023
Remove the extra line before default in the swicth and add a break
at the end of default in the swicth which is a standard practice.
Signed-off-by: Chaitanya Kulkarni <kch at nvidia.com>
---
drivers/nvme/host/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 06dac97c5b0f..fdcba1dc583d 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2594,9 +2594,9 @@ static void nvme_set_latency_tolerance(struct device *dev, s32 val)
case PM_QOS_LATENCY_ANY:
latency = U64_MAX;
break;
-
default:
latency = val;
+ break;
}
if (ctrl->ps_max_latency_us != latency) {
--
2.29.0
More information about the Linux-nvme
mailing list