mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] crypto: ccp - Remove redundant __GFP_ZERO
@ 2025-08-08  7:44 Qianfeng Rong
  2025-08-08 16:22 ` Mario Limonciello
  2025-08-16  9:36 ` Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Qianfeng Rong @ 2025-08-08  7:44 UTC (permalink / raw)
  To: Mario Limonciello, Tom Lendacky, John Allen, Herbert Xu,
	David S. Miller, linux-crypto, linux-kernel
  Cc: Qianfeng Rong

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

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
---
 drivers/crypto/ccp/hsti.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/ccp/hsti.c b/drivers/crypto/ccp/hsti.c
index 1b39a4fb55c0..0ab3708951af 100644
--- a/drivers/crypto/ccp/hsti.c
+++ b/drivers/crypto/ccp/hsti.c
@@ -84,7 +84,7 @@ static int psp_poulate_hsti(struct psp_device *psp)
 		return 0;
 
 	/* Allocate command-response buffer */
-	req = kzalloc(sizeof(*req), GFP_KERNEL | __GFP_ZERO);
+	req = kzalloc(sizeof(*req), GFP_KERNEL);
 	if (!req)
 		return -ENOMEM;
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-16  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-08  7:44 [PATCH] crypto: ccp - Remove redundant __GFP_ZERO Qianfeng Rong
2025-08-08 16:22 ` Mario Limonciello
2025-08-16  9:36 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®