Received: from eggs.gnu.org ([2001:4830:134:3::10]:43620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXrG7-0006Di-VE for qemu-devel@nongnu.org; Tue, 17 Mar 2015 09:10:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXrG4-0002nY-3N for qemu-devel@nongnu.org; Tue, 17 Mar 2015 09:10:11 -0400 From: Juan Quintela In-Reply-To: <1424073025-13262-1-git-send-email-mjt@msgid.tls.msk.ru> (Michael Tokarev's message of "Mon, 16 Feb 2015 10:50:25 +0300") References: <1424073025-13262-1-git-send-email-mjt@msgid.tls.msk.ru> Date: Tue, 17 Mar 2015 14:10:02 +0100 Message-ID: <87619zkbx1.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] migration/rdma: clean up qemu_rdma_dest_init a bit Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-trivial@nongnu.org, Amit Shah , qemu-devel@nongnu.org Michael Tokarev 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. > > Signed-off-by: Michael Tokarev Applied, thanks.