[PATCH 4/4] nvme-core: fix checkpatch warnings
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Tue Jul 7 20:58:31 EDT 2020
This patch fixes couple of warnings (comment fix and
unsigned-> unsigned int) reported by the checkpatch.pl which
were present in the original code.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
---
drivers/nvme/host/core.c | 2 +-
drivers/nvme/host/nvme.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index e0b47e77cbca..a35725aa6144 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2344,7 +2344,7 @@ EXPORT_SYMBOL_GPL(nvme_disable_ctrl);
int nvme_enable_ctrl(struct nvme_ctrl *ctrl)
{
- unsigned dev_page_min;
+ unsigned int dev_page_min;
int ret;
ret = ctrl->ops->reg_read64(ctrl, NVME_REG_CAP, &ctrl->cap);
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 4a56897e9081..9aa1d17f06e8 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -39,7 +39,7 @@ extern unsigned int admin_timeout;
/*
* Default to a 4K page size, with the intention to update this
- * path in the future to accomodate architectures with differing
+ * path in the future to accommodate architectures with differing
* kernel and IO page sizes.
*/
#define NVME_CTRL_PAGE_SHIFT 12
--
2.26.0
More information about the Linux-nvme
mailing list