quorum: Clean up quorum_aio_get()
commit7c37f941d028e2a1bf350ffb292684f2e1a292c7
authorKevin Wolf <kwolf@redhat.com>
Tue, 22 Nov 2016 11:49:49 +0000 (22 12:49 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 9 Jan 2017 12:30:52 +0000 (9 13:30 +0100)
tree55b5daa89370e0d340c702a3cce8c73326f21a4a
parenta7e159025ed439011a47d56af5f34729bbb7247c
quorum: Clean up quorum_aio_get()

Make sure that all fields of the new QuorumAIOCB are zeroed when the
function returns even without explicitly setting them. This will protect
us when new fields are added, removes some explicit zero assignment and
makes the code a little nicer to read.

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
block/quorum.c