aboutsummaryrefslogtreecommitdiff
path: root/blockdev-nbd.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2018-10-03 20:02:28 +0300
committerEric Blake <eblake@redhat.com>2018-10-03 15:52:32 -0500
commit7f7dfe2a53446072c136d349e3150c84d322b2bc (patch)
tree8eae57a7bde08b41f89ab0b34a16b4e93afce041 /blockdev-nbd.c
parentf5cd0bb5174dcd6e8c160d7992fb89f09f264ef0 (diff)
downloadqemu-7f7dfe2a53446072c136d349e3150c84d322b2bc.zip
qemu-7f7dfe2a53446072c136d349e3150c84d322b2bc.tar.gz
qemu-7f7dfe2a53446072c136d349e3150c84d322b2bc.tar.bz2
nbd/server: drop old-style negotiation
After the previous commit, nbd_client_new's first parameter is always NULL. Let's drop it with all corresponding old-style negotiation code path which is unreachable now. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20181003170228.95973-3-vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> [eblake: re-wrap short line] Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'blockdev-nbd.c')
-rw-r--r--blockdev-nbd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/blockdev-nbd.c b/blockdev-nbd.c
index 1ef1104..1d170c8 100644
--- a/blockdev-nbd.c
+++ b/blockdev-nbd.c
@@ -36,8 +36,7 @@ static void nbd_accept(QIONetListener *listener, QIOChannelSocket *cioc,
gpointer opaque)
{
qio_channel_set_name(QIO_CHANNEL(cioc), "nbd-server");
- nbd_client_new(NULL, cioc,
- nbd_server->tlscreds, NULL,
+ nbd_client_new(cioc, nbd_server->tlscreds, NULL,
nbd_blockdev_client_closed);
}