diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-04-25 16:22:58 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-04-30 07:19:34 +0200 |
commit | 42a13ddbab00455504d50ef159360f7451d597e4 (patch) | |
tree | e61b0548ecc50fd3ef69ab46e5792855d86ea3ae | |
parent | crypto: drbg - should select CTR (diff) | |
download | linux-42a13ddbab00455504d50ef159360f7451d597e4.tar.xz linux-42a13ddbab00455504d50ef159360f7451d597e4.zip |
crypto: bcm - Remove the unnecessary cast for PTR_ERR().
It's not necessary to specify 'int' casting for PTR_ERR().
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/bcm/cipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/bcm/cipher.c b/drivers/crypto/bcm/cipher.c index 5db23c18c81f..36a1f4e2aff9 100644 --- a/drivers/crypto/bcm/cipher.c +++ b/drivers/crypto/bcm/cipher.c @@ -4436,7 +4436,7 @@ static int spu_mb_init(struct device *dev) for (i = 0; i < iproc_priv.spu.num_chan; i++) { iproc_priv.mbox[i] = mbox_request_channel(mcl, i); if (IS_ERR(iproc_priv.mbox[i])) { - err = (int)PTR_ERR(iproc_priv.mbox[i]); + err = PTR_ERR(iproc_priv.mbox[i]); dev_err(dev, "Mbox channel %d request failed with err %d", i, err); |