nbd: Drop dead code spotted by Coverity
commit2866ddd121f5ccaabf1752a8d25eab9be1309d3f
authorEric Blake <eblake@redhat.com>
Mon, 16 May 2022 21:05:19 +0000 (16 16:05 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jun 2022 15:07:06 +0000 (24 17:07 +0200)
treed27cff7de2478e8e73f9ebf2e69c01837ea7d7b5
parent7455ff1aa01564cc175db5b2373e610503ad4411
nbd: Drop dead code spotted by Coverity

CID 1488362 points out that the second 'rc >= 0' check is now dead
code.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Fixes: 172f5f1a40(nbd: remove peppering of nbd_client_connected)
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20220516210519.76135-1-eblake@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nbd.c