Skip to content

Commit 94e970b

Browse files
minwooimChristoph Hellwig
authored andcommitted
nvme-fabrics: remove unused argument
The variable 'count' is not currently used by nvmf_create_ctrl(), so remove it. Signed-off-by: Minwoo Im <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 8a03b27 commit 94e970b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/fabrics.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ EXPORT_SYMBOL_GPL(nvmf_free_options);
978978
NVMF_OPT_DISABLE_SQFLOW)
979979

980980
static struct nvme_ctrl *
981-
nvmf_create_ctrl(struct device *dev, const char *buf, size_t count)
981+
nvmf_create_ctrl(struct device *dev, const char *buf)
982982
{
983983
struct nvmf_ctrl_options *opts;
984984
struct nvmf_transport_ops *ops;
@@ -1073,7 +1073,7 @@ static ssize_t nvmf_dev_write(struct file *file, const char __user *ubuf,
10731073
goto out_unlock;
10741074
}
10751075

1076-
ctrl = nvmf_create_ctrl(nvmf_device, buf, count);
1076+
ctrl = nvmf_create_ctrl(nvmf_device, buf);
10771077
if (IS_ERR(ctrl)) {
10781078
ret = PTR_ERR(ctrl);
10791079
goto out_unlock;

0 commit comments

Comments
 (0)