diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-08-27 08:22:48 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-09-22 11:43:27 +0200 |
commit | 06ec1f82bfa5078928e0efaa5ed350a1dcc91631 (patch) | |
tree | 3b8b173898e0b0f40770bd5121a420f4e29f091d /drivers/crypto/marvell | |
parent | crypto: inside-secure - remove null check before kfree (diff) | |
download | linux-06ec1f82bfa5078928e0efaa5ed350a1dcc91631.tar.xz linux-06ec1f82bfa5078928e0efaa5ed350a1dcc91631.zip |
crypto: Use PTR_ERR_ZERO
Use PTR_ERROR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.
Build successfully.
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell')
-rw-r--r-- | drivers/crypto/marvell/tdma.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/crypto/marvell/tdma.c b/drivers/crypto/marvell/tdma.c index c76375ff376d..d0ef171c18df 100644 --- a/drivers/crypto/marvell/tdma.c +++ b/drivers/crypto/marvell/tdma.c @@ -304,10 +304,7 @@ int mv_cesa_dma_add_dummy_launch(struct mv_cesa_tdma_chain *chain, gfp_t flags) struct mv_cesa_tdma_desc *tdma; tdma = mv_cesa_dma_add_desc(chain, flags); - if (IS_ERR(tdma)) - return PTR_ERR(tdma); - - return 0; + return PTR_ERR_OR_ZERO(tdma); } int mv_cesa_dma_add_dummy_end(struct mv_cesa_tdma_chain *chain, gfp_t flags) |