Received: from eggs.gnu.org ([2001:4830:134:3::10]:44848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRdfb-0000Wm-Ef for qemu-devel@nongnu.org; Sat, 28 Feb 2015 04:26:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRdfW-0003Ld-Ga for qemu-devel@nongnu.org; Sat, 28 Feb 2015 04:26:47 -0500 Message-ID: <54F189D1.10908@msgid.tls.msk.ru> Date: Sat, 28 Feb 2015 12:26:41 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1424073025-13262-1-git-send-email-mjt@msgid.tls.msk.ru> <20150219102500.GA2305@work-vm> In-Reply-To: <20150219102500.GA2305@work-vm> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] migration/rdma: clean up qemu_rdma_dest_init a bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: qemu-trivial@nongnu.org, Amit Shah , qemu-devel@nongnu.org, Juan Quintela 19.02.2015 13:25, Dr. David Alan Gilbert wrote: > * Michael Tokarev (mjt@tls.msk.ru) wrote: >> Do not check for rdma->host being empty twice. This removes a large >> "if" block, so code indentation is changed. While at it, remove an >> ugly goto from the loop, replacing it with a cleaner if logic. And >> finally, there's no need to initialize `ret' variable since is always >> has a value. > > This looks OK; have you got RDMA hardware to test with, if not I can > give it a go. No, I don't have any RDMA hw, I only compile-tested this code, and double-checked the changes does not change behavour. Thanks, /mjt