diff options
author | Stephan Mueller <smueller@chronox.de> | 2014-08-17 17:41:38 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-08-25 20:34:14 +0800 |
commit | e7740ff7a2c479fc378f28019393eb50e399f444 (patch) | |
tree | 35fc0cd9d338e03576a356cc5096f7f6e4d51ba9 /crypto/drbg.c | |
parent | 41a4171c300462879daedcaf793a204a7ca091e6 (diff) | |
download | linux-crypto-e7740ff7a2c479fc378f28019393eb50e399f444.tar.gz linux-crypto-e7740ff7a2c479fc378f28019393eb50e399f444.zip |
crypto: drbg - remove unnecessary sanity check for shadow state
During creation of the DRBG shadow state, it is ensured that the DRBG
state structure is already allocated. Thus, a sanity check for verifying
that the structure is allocated is removed.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/drbg.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c index b4938bb4..9fd239fe 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c @@ -1155,9 +1155,6 @@ static inline int drbg_alloc_state(struct drbg_state *drbg) int ret = -ENOMEM; unsigned int sb_size = 0; - if (!drbg) - return -EINVAL; - drbg->V = kmalloc(drbg_statelen(drbg), GFP_KERNEL); if (!drbg->V) goto err; |