aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinwoo Im <minwoo.im.dev@gmail.com>2019-05-11 09:42:55 -0400
committerChristoph Hellwig <hch@lst.de>2019-05-14 11:19:43 -0400
commit94e970b6740b11209848b05364dadbc12f3937f5 (patch)
tree6f108c957765e0c4dc185cd27b4d398ca751210a
parent8a03b27ea61c2ab9de16a8a195822ef05e799748 (diff)
nvme-fabrics: remove unused argument
The variable 'count' is not currently used by nvmf_create_ctrl(), so remove it. Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/nvme/host/fabrics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 592d1e61ef7e..5838f7cd53ac 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -978,7 +978,7 @@ EXPORT_SYMBOL_GPL(nvmf_free_options);
978 NVMF_OPT_DISABLE_SQFLOW) 978 NVMF_OPT_DISABLE_SQFLOW)
979 979
980static struct nvme_ctrl * 980static struct nvme_ctrl *
981nvmf_create_ctrl(struct device *dev, const char *buf, size_t count) 981nvmf_create_ctrl(struct device *dev, const char *buf)
982{ 982{
983 struct nvmf_ctrl_options *opts; 983 struct nvmf_ctrl_options *opts;
984 struct nvmf_transport_ops *ops; 984 struct nvmf_transport_ops *ops;
@@ -1073,7 +1073,7 @@ static ssize_t nvmf_dev_write(struct file *file, const char __user *ubuf,
1073 goto out_unlock; 1073 goto out_unlock;
1074 } 1074 }
1075 1075
1076 ctrl = nvmf_create_ctrl(nvmf_device, buf, count); 1076 ctrl = nvmf_create_ctrl(nvmf_device, buf);
1077 if (IS_ERR(ctrl)) { 1077 if (IS_ERR(ctrl)) {
1078 ret = PTR_ERR(ctrl); 1078 ret = PTR_ERR(ctrl);
1079 goto out_unlock; 1079 goto out_unlock;