diff options
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index c3b9bfeeb7ff..08c57c8aec95 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -749,12 +749,10 @@ struct crypto_alg *crypto_attr_alg2(struct rtattr *rta, | |||
749 | u32 type, u32 mask) | 749 | u32 type, u32 mask) |
750 | { | 750 | { |
751 | const char *name; | 751 | const char *name; |
752 | int err; | ||
753 | 752 | ||
754 | name = crypto_attr_alg_name(rta); | 753 | name = crypto_attr_alg_name(rta); |
755 | err = PTR_ERR(name); | ||
756 | if (IS_ERR(name)) | 754 | if (IS_ERR(name)) |
757 | return ERR_PTR(err); | 755 | return ERR_CAST(name); |
758 | 756 | ||
759 | return crypto_find_alg(name, frontend, type, mask); | 757 | return crypto_find_alg(name, frontend, type, mask); |
760 | } | 758 | } |