]> Git Repo - qemu.git/commit
dump: simplify get_len_buf_out()
authorLaszlo Ersek <[email protected]>
Tue, 20 May 2014 11:42:53 +0000 (13:42 +0200)
committerLuiz Capitulino <[email protected]>
Wed, 11 Jun 2014 14:10:28 +0000 (10:10 -0400)
commitb87ef3518b2eeb9a57ee0d06d7e82a07ab5e4ffd
tree7c76da146cd610a798629db46a7e9c3ebceed462
parentc998acb03df614ddf2f3e206582586f191d07fff
dump: simplify get_len_buf_out()

We can (and should) rely on the fact that s->flag_compress is exactly one
of DUMP_DH_COMPRESSED_ZLIB, DUMP_DH_COMPRESSED_LZO, and
DUMP_DH_COMPRESSED_SNAPPY.

This is ensured by the QMP schema and dump_init() in combination.

Suggested-by: Paolo Bonzini <[email protected]>
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
dump.c
This page took 0.022789 seconds and 4 git commands to generate.