Re: [PATCH] crypto: arm64: Use PTR_ERR_OR_ZERO rather than its implementation.

2019-09-09 Thread Herbert Xu
On Tue, Sep 03, 2019 at 02:54:16PM +0800, zhong jiang wrote: > PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to > use it directly. hence just replace it. > > Signed-off-by: zhong jiang > --- > arch/arm64/crypto/aes-glue.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions

Re: [PATCH] crypto: arm64: Use PTR_ERR_OR_ZERO rather than its implementation.

2019-09-04 Thread zhong jiang
On 2019/9/4 18:25, Will Deacon wrote: > On Tue, Sep 03, 2019 at 02:54:16PM +0800, zhong jiang wrote: >> PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to >> use it directly. hence just replace it. >> >> Signed-off-by: zhong jiang >> --- >> arch/arm64/crypto/aes-glue.c | 4 +--- >

Re: [PATCH] crypto: arm64: Use PTR_ERR_OR_ZERO rather than its implementation.

2019-09-04 Thread Will Deacon
On Tue, Sep 03, 2019 at 02:54:16PM +0800, zhong jiang wrote: > PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to > use it directly. hence just replace it. > > Signed-off-by: zhong jiang > --- > arch/arm64/crypto/aes-glue.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions