Received: from eggs.gnu.org ([2001:4830:134:3::10]:56981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUUXk-0001aM-VU for qemu-devel@nongnu.org; Mon, 10 Jul 2017 04:59:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUUXk-0006fd-3m for qemu-devel@nongnu.org; Mon, 10 Jul 2017 04:59:49 -0400 References: <20170710083553.6167-1-den@openvz.org> <20170710085636.GB8951@lemon.lan> From: "Denis V. Lunev" Message-ID: Date: Mon, 10 Jul 2017 11:59:34 +0300 MIME-Version: 1.0 In-Reply-To: <20170710085636.GB8951@lemon.lan> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Qemu-devel] [PATCH 1/1] block: fix possible return code clobbering in bdrv_co_pdiscard List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , qemu-block@nongnu.org On 07/10/2017 11:56 AM, Fam Zheng wrote: > On Mon, 07/10 11:35, Denis V. Lunev wrote: >> Signed-off-by: Denis V. Lunev >> CC: Stefan Hajnoczi (supporter:Block I/O path) >> CC: Fam Zheng (supporter:Block I/O path) > Maybe use "--noroles"? The parenthesis part is not really useful. good thing. May be this should be default. I have missed to clear that at commit stage. Den >> --- >> block/io.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/block/io.c b/block/io.c >> index ed31810c0a..e5c6dc77d3 100644 >> --- a/block/io.c >> +++ b/block/io.c >> @@ -2464,7 +2464,6 @@ int coroutine_fn bdrv_co_pdiscard(BlockDriverState *bs, int64_t offset, >> assert(max_pdiscard >= bs->bl.request_alignment); >> >> while (count > 0) { >> - int ret; >> int num = count; >> >> if (head) { >> -- >> 2.11.0 >> >> > Reviewed-by: Fam Zheng