diff options
author | Ashijeet Acharya <ashijeetacharya@gmail.com> | 2016-11-02 16:23:46 +0530 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-11-11 15:54:55 +0100 |
commit | 9a80832abff65044a18405f4eb22c94eba341ff6 (patch) | |
tree | 5623c4223ffebde6534792b5f81d31d22889e4e3 /block/ssh.c | |
parent | a1d4e38a8b01a6699355c31867d524f8d4cd480e (diff) |
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: Ashijeet Acharya <ashijeetacharya@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/ssh.c')
-rw-r--r-- | block/ssh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/block/ssh.c b/block/ssh.c index ca071c569c..15ed2818c5 100644 --- a/block/ssh.c +++ b/block/ssh.c @@ -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; |