Commit 94e970b6 authored by Minwoo Im's avatar Minwoo Im Committed by Christoph Hellwig

nvme-fabrics: remove unused argument

The variable 'count' is not currently used by nvmf_create_ctrl(), so
remove it.
Signed-off-by: default avatarMinwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 8a03b27e
...@@ -978,7 +978,7 @@ EXPORT_SYMBOL_GPL(nvmf_free_options); ...@@ -978,7 +978,7 @@ EXPORT_SYMBOL_GPL(nvmf_free_options);
NVMF_OPT_DISABLE_SQFLOW) NVMF_OPT_DISABLE_SQFLOW)
static struct nvme_ctrl * static struct nvme_ctrl *
nvmf_create_ctrl(struct device *dev, const char *buf, size_t count) nvmf_create_ctrl(struct device *dev, const char *buf)
{ {
struct nvmf_ctrl_options *opts; struct nvmf_ctrl_options *opts;
struct nvmf_transport_ops *ops; struct nvmf_transport_ops *ops;
...@@ -1073,7 +1073,7 @@ static ssize_t nvmf_dev_write(struct file *file, const char __user *ubuf, ...@@ -1073,7 +1073,7 @@ static ssize_t nvmf_dev_write(struct file *file, const char __user *ubuf,
goto out_unlock; goto out_unlock;
} }
ctrl = nvmf_create_ctrl(nvmf_device, buf, count); ctrl = nvmf_create_ctrl(nvmf_device, buf);
if (IS_ERR(ctrl)) { if (IS_ERR(ctrl)) {
ret = PTR_ERR(ctrl); ret = PTR_ERR(ctrl);
goto out_unlock; goto out_unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment