]> Git Repo - qemu.git/commit
nbd/server: refactor nbd_negotiate
authorVladimir Sementsov-Ogievskiy <[email protected]>
Fri, 7 Jul 2017 15:29:10 +0000 (18:29 +0300)
committerEric Blake <[email protected]>
Mon, 10 Jul 2017 14:57:24 +0000 (09:57 -0500)
commit76ff081d91d215a4f91849653bdc2ebd8f657183
tree670d672353b63c12dbc8f9c9fbe102deca135e50
parent1e120ffead85d08d41160065e0d8cf86400b1c9e
nbd/server: refactor nbd_negotiate

Combine two successive "if (oldStyle) {...} else {...}" into one.

Block "if (client->tlscreds)" under "if (oldStyle)" is unreachable,
as we have "oldStyle = client->exp != NULL && !client->tlscreds;".
So, delete this block.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20170707152918[email protected]>
Signed-off-by: Eric Blake <[email protected]>
nbd/server.c
This page took 0.029571 seconds and 4 git commands to generate.