struct cipher_data *out (sess_new->cdata) is already initiallized to zero as 'ses_new = kzalloc(...)' in the caller function crypto_create_session
Signed-off-by: Cristian Stoica <cristian.sto...@freescale.com> --- cryptlib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cryptlib.c b/cryptlib.c index fad5ba6..9e6510f 100644 --- a/cryptlib.c +++ b/cryptlib.c @@ -58,8 +58,6 @@ int cryptodev_cipher_init(struct cipher_data *out, const char *alg_name, { int ret; - memset(out, 0, sizeof(*out)); - if (aead == 0) { struct ablkcipher_alg *alg; -- 1.7.11.7 _______________________________________________ Cryptodev-linux-devel mailing list Cryptodev-linux-devel@gna.org https://mail.gna.org/listinfo/cryptodev-linux-devel