From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: IB/core: Use PTR_ERR_OR_ZERO() Date: Mon, 11 Dec 2017 16:38:52 -0700 Message-ID: <20171211233852.GF32020@ziepe.ca> References: <1511882287-450-1-git-send-email-gomonovych@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1511882287-450-1-git-send-email-gomonovych@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: "Gomonovych, Vasyl" Cc: dledford@redhat.com, leonro@mellanox.com, yishaih@mellanox.com, matanb@mellanox.com, don.hiatt@intel.com, dasaratharaman.chandramouli@intel.com, noaos@mellanox.com, parav@mellanox.com, artemyko@mellanox.com, bodong@mellanox.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-rdma@vger.kernel.org On Tue, Nov 28, 2017 at 04:18:07PM +0100, Gomonovych, Vasyl wrote: > Fix ptr_ret.cocci warnings: > drivers/infiniband/core/uverbs_cmd.c:1156:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Signed-off-by: Vasyl Gomonovych > Reviewed-by: Leon Romanovsky > drivers/infiniband/core/uverbs_cmd.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Applied to for-next, thanks Jason