diff options
Diffstat (limited to 'crypto/cts.c')
-rw-r--r-- | crypto/cts.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/cts.c b/crypto/cts.c index ccf9c5de3958..042223f8e733 100644 --- a/crypto/cts.c +++ b/crypto/cts.c | |||
@@ -282,9 +282,8 @@ static struct crypto_instance *crypto_cts_alloc(struct rtattr **tb) | |||
282 | 282 | ||
283 | alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_BLKCIPHER, | 283 | alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_BLKCIPHER, |
284 | CRYPTO_ALG_TYPE_MASK); | 284 | CRYPTO_ALG_TYPE_MASK); |
285 | err = PTR_ERR(alg); | ||
286 | if (IS_ERR(alg)) | 285 | if (IS_ERR(alg)) |
287 | return ERR_PTR(err); | 286 | return ERR_CAST(alg); |
288 | 287 | ||
289 | inst = ERR_PTR(-EINVAL); | 288 | inst = ERR_PTR(-EINVAL); |
290 | if (!is_power_of_2(alg->cra_blocksize)) | 289 | if (!is_power_of_2(alg->cra_blocksize)) |