From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 07/11] IB/srp: Move code out of a loop Date: Tue, 3 May 2016 11:29:15 +0200 Message-ID: <20160503092915.GH19931@lst.de> References: <571A936F.7040409@sandisk.com> <571A9443.6000600@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <571A9443.6000600-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Bart Van Assche Cc: Doug Ledford , Christoph Hellwig , Sagi Grimberg , Laurence Oberman , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org On Fri, Apr 22, 2016 at 02:14:43PM -0700, Bart Van Assche wrote: > Since all srp_map_finish_fr() callers pass a non-zero value as > the fourth argument (sg_nents), the sg_nents == 0 check in that > function can be removed. Add a count == 0 check in the caller > of that function. Looks fine, Reviewed-by: Christoph Hellwig -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html