From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH libmlx5] fix err return values to match ibv_post_send expectations Date: Fri, 5 Aug 2016 12:01:07 -0600 Message-ID: <20160805180107.GA31674@obsidianresearch.com> References: <1470418439-59245-1-git-send-email-jarod@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1470418439-59245-1-git-send-email-jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jarod Wilson Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Yishai Hadas List-Id: linux-rdma@vger.kernel.org On Fri, Aug 05, 2016 at 01:33:59PM -0400, Jarod Wilson wrote: > - return _mlx5_post_send(ibqp, wr, bad_wr); > + errno = _mlx5_post_send(ibqp, wr, bad_wr); > + return errno; Why still set errno? It was wrong in the first place.. Likely every use of errno in this provider should be reviewed. Jason -- 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