]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - crypto/algapi.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm...
[karo-tx-linux.git] / crypto / algapi.c
index c3b9bfeeb7ffcf7ab04d11a2c9a1e053da6c972e..08c57c8aec952bee02e6076d323f49c3523c16d7 100644 (file)
@@ -749,12 +749,10 @@ struct crypto_alg *crypto_attr_alg2(struct rtattr *rta,
                                    u32 type, u32 mask)
 {
        const char *name;
-       int err;
 
        name = crypto_attr_alg_name(rta);
-       err = PTR_ERR(name);
        if (IS_ERR(name))
-               return ERR_PTR(err);
+               return ERR_CAST(name);
 
        return crypto_find_alg(name, frontend, type, mask);
 }