X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=crypto%2Flrw.c;h=9d52e580d10a4d34b5117f801f98cf6bd4249b5c;hb=e6f5b934fba8c44c87c551e066aa7ca6fde2939e;hp=621095db28b354fa314acb44528f514baf026cf5;hpb=6de410c2b0cc055ae9ee640c84331f6a70878d9b;p=~andy%2Flinux diff --git a/crypto/lrw.c b/crypto/lrw.c index 621095db28b..9d52e580d10 100644 --- a/crypto/lrw.c +++ b/crypto/lrw.c @@ -241,7 +241,7 @@ static struct crypto_instance *alloc(struct rtattr **tb) alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, CRYPTO_ALG_TYPE_MASK); if (IS_ERR(alg)) - return ERR_PTR(PTR_ERR(alg)); + return ERR_CAST(alg); inst = crypto_alloc_instance("lrw", alg); if (IS_ERR(inst))