diff options
| author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-05-10 20:51:24 +0800 |
|---|---|---|
| committer | Juan Quintela <quintela@trasno.org> | 2014-05-14 15:24:51 +0200 |
| commit | fb626663da94ddbfae88900c62bf4a26534fbafa (patch) | |
| tree | 515e95e955c378dc540562e7c760a26255c63eb6 /hw/usb/dev-storage.c | |
| parent | f30d56e7d63fe2f536511bffa13306bec2e01c37 (diff) | |
| download | focaccia-qemu-fb626663da94ddbfae88900c62bf4a26534fbafa.tar.gz focaccia-qemu-fb626663da94ddbfae88900c62bf4a26534fbafa.zip | |
arch_init: Simplify code for load_xbzrle()
For xbzrle_decode_buffer(), when decoding contents will exceed writing buffer, it will return -1, so need not check the return value whether large than writing buffer. And when failure occurs within load_xbzrle(), it always return -1 without any resources which need release. So can remove the related checking statements, and also can remove 'rc' and 'ret' local variables, Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hw/usb/dev-storage.c')
0 files changed, 0 insertions, 0 deletions