]> Git Repo - qemu.git/commit
nbd: Use return values instead of error_is_set(errp)
authorMarkus Armbruster <[email protected]>
Fri, 25 Apr 2014 14:50:33 +0000 (16:50 +0200)
committerStefan Hajnoczi <[email protected]>
Fri, 25 Apr 2014 16:05:06 +0000 (18:05 +0200)
commit92de9012904cd6ada47565f48db545d53069d933
tree5335ecbfdc636cd0c6cbe03762904a7389513cee
parent4399c438a431effbb785c6c7314b748a4e13734a
nbd: Use return values instead of error_is_set(errp)

Using error_is_set(errp) to check whether a function call failed is
fragile: it breaks when errp is null.  Check perfectly suitable return
values instead when possible.  errp can't be null there now, but this
is more robust and more obviously correct

Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
block/nbd.c
This page took 0.026111 seconds and 4 git commands to generate.