X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fecb.c;h=a46838e98a71a18de0b4adcdd46a5f65fa556be6;hb=acee709cab689ec7703770e8b8cb5cc3a4abcb31;hp=6310387a872c6c4df4dd538a3d60f25c70391590;hpb=62ea6d80211ecc88ef516927ecebf64cb505be3f;p=linux-2.6 diff --git a/crypto/ecb.c b/crypto/ecb.c index 6310387a87..a46838e98a 100644 --- a/crypto/ecb.c +++ b/crypto/ecb.c @@ -128,7 +128,7 @@ static struct crypto_instance *crypto_ecb_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("ecb", alg); if (IS_ERR(inst))