[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] arch_init: Simplify code for load_xbzrle()

From: Juan Quintela
Subject: Re: [Qemu-devel] [PATCH] arch_init: Simplify code for load_xbzrle()
Date: Mon, 12 May 2014 12:27:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Chen Gang <address@hidden> wrote:
> 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 <address@hidden>

Reviewed-by: Juan Quintela <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]