alpha: implement HW performance events on the EV67 and later CPUs
[sfrench/cifs-2.6.git] / crypto / xts.c
index d87b0f3102c322337e38a8c67b8d7b0f0a69e661..555ecaab1e544d89d519d685fdfecc9bf602470d 100644 (file)
@@ -224,7 +224,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("xts", alg);
        if (IS_ERR(inst))