OSDN Git Service

crypto: bcm - Remove the unnecessary cast for PTR_ERR().
authorTang Bin <tangbin@cmss.chinamobile.com>
Sat, 25 Apr 2020 14:22:58 +0000 (22:22 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Apr 2020 05:19:34 +0000 (15:19 +1000)
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>
drivers/crypto/bcm/cipher.c

index 5db23c1..36a1f4e 100644 (file)
@@ -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);