From: Herbert Xu Subject: Re: [PATCH] crypto: use ERR_CAST Date: Mon, 4 Feb 2013 21:21:41 +0800 Message-ID: <20130204132141.GB21627@gondor.apana.org.au> References: <1358854166-3952-1-git-send-email-Julia.Lawall@lip6.fr> <1358854166-3952-2-git-send-email-Julia.Lawall@lip6.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kernel-janitors@vger.kernel.org, "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org To: Julia Lawall Return-path: Received: from sting.hengli.com.au ([178.18.18.71]:59891 "EHLO fornost.hengli.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755163Ab3BDNVp (ORCPT ); Mon, 4 Feb 2013 08:21:45 -0500 Content-Disposition: inline In-Reply-To: <1358854166-3952-2-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, Jan 22, 2013 at 12:29:26PM +0100, Julia Lawall wrote: > From: Julia Lawall > > Replace PTR_ERR followed by ERR_PTR by ERR_CAST, to be more concise. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression err,x; > @@ > - err = PTR_ERR(x); > if (IS_ERR(x)) > - return ERR_PTR(err); > + return ERR_CAST(x); > // > > Signed-off-by: Julia Lawall Patch applied. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt