X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Flrw.c;h=9d52e580d10a4d34b5117f801f98cf6bd4249b5c;hb=75529219373e53042fc46c86d991125e616f42dd;hp=621095db28b354fa314acb44528f514baf026cf5;hpb=5cefcab3db2b13093480f2a42bf081574dd72d3d;p=linux-2.6 diff --git a/crypto/lrw.c b/crypto/lrw.c index 621095db28..9d52e580d1 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))