Displaying 1 result from an estimated 1 matches for "nvme_change_ctrl_state".
2020 Sep 09
17
[trivial PATCH] treewide: Convert switch/case fallthrough; to break;
...t;dev, "tx urb failed: %d\n",
urb->status);
- fallthrough;
- case 0:
break;
}
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index ea1fa41fbba8..aea9f978861e 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -365,7 +365,7 @@ bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl,
case NVME_CTRL_RESETTING:
case NVME_CTRL_CONNECTING:
changed = true;
- fallthrough;
+ break;
default:
break;
}
@@ -375,7 +375,7 @@ bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl,
case NVME_CTRL_NEW:
case NVME_CTRL_LIVE:
changed = true;
-...