提交 9a80832a 编写于 作者: A Ashijeet Acharya 提交者: Kevin Wolf

block/ssh: Code cleanup for unused parameter

This patch drops the unused parameter "BDRVSSHState" being passed into
the ssh_config() function and does code cleanup. The unused parameter
was introduced by the commit c322712.
Signed-off-by: NAshijeet Acharya <ashijeetacharya@gmail.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 a1d4e38a
......@@ -582,8 +582,7 @@ static bool ssh_process_legacy_socket_options(QDict *output_opts,
return true;
}
static InetSocketAddress *ssh_config(BDRVSSHState *s, QDict *options,
Error **errp)
static InetSocketAddress *ssh_config(QDict *options, Error **errp)
{
InetSocketAddress *inet = NULL;
QDict *addr = NULL;
......@@ -661,7 +660,7 @@ static int connect_to_ssh(BDRVSSHState *s, QDict *options,
}
/* Pop the config into our state object, Exit if invalid */
s->inet = ssh_config(s, options, errp);
s->inet = ssh_config(options, errp);
if (!s->inet) {
ret = -EINVAL;
goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册