Remove unused variables
commit471ce3dc86abbae5a1341334b9b58c8b319f783f
authorWouter Verhelst <w@uter.be>
Tue, 24 Oct 2017 11:24:06 +0000 (24 13:24 +0200)
committerWouter Verhelst <w@uter.be>
Tue, 24 Oct 2017 11:25:26 +0000 (24 13:25 +0200)
tree356a1b38d80981793aff3cd099b5d18259886843
parente53aa290f218797e7a1d4ca19961bcde39907cc9
Remove unused variables

gcc -Wall -Werror failed due to a number of unused variables. Remove.

In one case, we really should have been checking that variable, but
didn't. Since after the check there isn't much we can do anymore, drop
the variable and its assignment, and replace it by an if() { error
handling} construct instead.

Signed-off-by: Wouter Verhelst <w@uter.be>
nbd-client.c
nbd-server.c