From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLTgz-0002r4-L9 for qemu-devel@nongnu.org; Fri, 08 Jul 2016 07:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLTgu-0004W4-1f for qemu-devel@nongnu.org; Fri, 08 Jul 2016 07:11:33 -0400 Date: Fri, 8 Jul 2016 13:11:16 +0200 From: Kevin Wolf Message-ID: <20160708111116.GL14684@noname.redhat.com> References: <1466465969-25315-1-git-send-email-eblake@redhat.com> <1466465969-25315-6-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466465969-25315-6-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH 5/5] nbd: Drop unused offset parameter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Paolo Bonzini , Max Reitz Am 21.06.2016 um 01:39 hat Eric Blake geschrieben: > Now that NBD relies on the block layer to fragment things, we no > longer need to track an offset argument for which fragment of > a request we are actually servicing. > > While at it, use true and false instead of 0 and 1 for a bool > parameter. > > Signed-off-by: Eric Blake > @@ -35,7 +34,7 @@ ssize_t nbd_wr_syncv(QIOChannel *ioc, > > nlocal_iov = iov_copy(local_iov, nlocal_iov, > iov, niov, > - offset, length); > + 0, length); This statement fits in a single line instead of three. Kevin