projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: use ERR_CAST
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
crypto
/
ctr.c
diff --git
a/crypto/ctr.c
b/crypto/ctr.c
index
4ca7222
..
095dcb6
100644
(file)
--- a/
crypto/ctr.c
+++ b/
crypto/ctr.c
@@
-334,9
+334,8
@@
static struct crypto_instance *crypto_rfc3686_alloc(struct rtattr **tb)
alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_BLKCIPHER,
CRYPTO_ALG_TYPE_MASK);
- err = PTR_ERR(alg);
if (IS_ERR(alg))
- return ERR_
PTR(err
);
+ return ERR_
CAST(alg
);
/* We only support 16-byte blocks. */
err = -EINVAL;