Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ccp - Remove redundant __GFP_ZERO

Remove the redundant __GFP_ZERO flag from kzalloc() since kzalloc()
inherently zeroes memory.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Qianfeng Rong and committed by
Herbert Xu
34c065fe d2236198

+1 -1
+1 -1
drivers/crypto/ccp/hsti.c
··· 84 84 return 0; 85 85 86 86 /* Allocate command-response buffer */ 87 - req = kzalloc(sizeof(*req), GFP_KERNEL | __GFP_ZERO); 87 + req = kzalloc(sizeof(*req), GFP_KERNEL); 88 88 if (!req) 89 89 return -ENOMEM; 90 90