[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 03/16] nvme: remove superfluous breaks
From: |
Klaus Jensen |
Subject: |
[PATCH v3 03/16] nvme: remove superfluous breaks |
Date: |
Wed, 22 Apr 2020 09:09:14 +0200 |
From: Klaus Jensen <address@hidden>
These break statements was left over when commit 3036a626e9ef ("nvme:
add Get/Set Feature Timestamp support") was merged.
Signed-off-by: Klaus Jensen <address@hidden>
Reviewed-by: Maxim Levitsky <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Keith Busch <address@hidden>
---
hw/block/nvme.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 6702812ecdd1..f67499d85f3a 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -802,7 +802,6 @@ static uint16_t nvme_get_feature(NvmeCtrl *n, NvmeCmd *cmd,
NvmeRequest *req)
break;
case NVME_TIMESTAMP:
return nvme_get_feature_timestamp(n, cmd);
- break;
default:
trace_pci_nvme_err_invalid_getfeat(dw10);
return NVME_INVALID_FIELD | NVME_DNR;
@@ -846,11 +845,8 @@ static uint16_t nvme_set_feature(NvmeCtrl *n, NvmeCmd
*cmd, NvmeRequest *req)
req->cqe.result =
cpu_to_le32((n->num_queues - 2) | ((n->num_queues - 2) << 16));
break;
-
case NVME_TIMESTAMP:
return nvme_set_feature_timestamp(n, cmd);
- break;
-
default:
trace_pci_nvme_err_invalid_setfeat(dw10);
return NVME_INVALID_FIELD | NVME_DNR;
--
2.26.2
- [PATCH v3 00/16] nvme: refactoring and cleanups, Klaus Jensen, 2020/04/22
- [PATCH v3 03/16] nvme: remove superfluous breaks,
Klaus Jensen <=
- [PATCH v3 01/16] nvme: fix pci doorbell size calculation, Klaus Jensen, 2020/04/22
- [PATCH v3 09/16] nvme: factor out property/constraint checks, Klaus Jensen, 2020/04/22
- [PATCH v3 06/16] nvme: refactor nvme_addr_read, Klaus Jensen, 2020/04/22
- [PATCH v3 07/16] nvme: add max_ioqpairs device parameter, Klaus Jensen, 2020/04/22
- [PATCH v3 02/16] nvme: rename trace events to pci_nvme, Klaus Jensen, 2020/04/22
- [PATCH v3 08/16] nvme: remove redundant cmbloc/cmbsz members, Klaus Jensen, 2020/04/22
- [PATCH v3 04/16] nvme: move device parameters to separate struct, Klaus Jensen, 2020/04/22
- [PATCH v3 05/16] nvme: use constants in identify, Klaus Jensen, 2020/04/22