X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=crypto%2Fauthencesn.c;h=ab53762fc309c5db55ccaab948f1862bcc7a237a;hb=99369065970e9ea7d1ca489341ed29d1a72ec0b5;hp=136b68b9d8d4646e60dbe6399abf3f52c67568f0;hpb=94bd217e2d683719ab21a4ac117d8a1b91cbedc9;p=~andy%2Flinux diff --git a/crypto/authencesn.c b/crypto/authencesn.c index 136b68b9d8d..ab53762fc30 100644 --- a/crypto/authencesn.c +++ b/crypto/authencesn.c @@ -715,9 +715,8 @@ static struct crypto_instance *crypto_authenc_esn_alloc(struct rtattr **tb) int err; algt = crypto_get_attr_type(tb); - err = PTR_ERR(algt); if (IS_ERR(algt)) - return ERR_PTR(err); + return ERR_CAST(algt); if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) return ERR_PTR(-EINVAL);