We don't need to clear allocated memory. This will speed-up things a bit.
MFC after: 3 days
This commit is contained in:
parent
0425964369
commit
8e698f8cb4
@ -529,7 +529,7 @@ g_eli_crypto_run(struct g_eli_worker *wr, struct bio *bp)
|
||||
*/
|
||||
if (bp->bio_cmd == BIO_WRITE)
|
||||
size += bp->bio_length;
|
||||
p = malloc(size, M_ELI, M_NOWAIT | M_ZERO);
|
||||
p = malloc(size, M_ELI, M_NOWAIT);
|
||||
if (p == NULL)
|
||||
return (ENOMEM);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user