mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
05c81ccd90
commit
84693d87a6
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue