diff options
Diffstat (limited to 'crypto')
-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 b4938bb4c465..9fd239fea963 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c | |||
@@ -1155,9 +1155,6 @@ static inline int drbg_alloc_state(struct drbg_state *drbg) | |||
1155 | int ret = -ENOMEM; | 1155 | int ret = -ENOMEM; |
1156 | unsigned int sb_size = 0; | 1156 | unsigned int sb_size = 0; |
1157 | 1157 | ||
1158 | if (!drbg) | ||
1159 | return -EINVAL; | ||
1160 | |||
1161 | drbg->V = kmalloc(drbg_statelen(drbg), GFP_KERNEL); | 1158 | drbg->V = kmalloc(drbg_statelen(drbg), GFP_KERNEL); |
1162 | if (!drbg->V) | 1159 | if (!drbg->V) |
1163 | goto err; | 1160 | goto err; |