* [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 related [flat|nested] 3+ messages in thread
* Re: [PATCH] crypto: ccp - Remove redundant __GFP_ZERO
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
1 sibling, 0 replies; 3+ messages in thread
From: Mario Limonciello @ 2025-08-08 16:22 UTC (permalink / raw)
To: Qianfeng Rong, Tom Lendacky, John Allen, Herbert Xu,
David S. Miller, linux-crypto, linux-kernel
On 8/8/2025 2:44 AM, Qianfeng Rong wrote:
> 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;
>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] crypto: ccp - Remove redundant __GFP_ZERO
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
1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2025-08-16 9:36 UTC (permalink / raw)
To: Qianfeng Rong
Cc: Mario Limonciello, Tom Lendacky, John Allen, David S. Miller,
linux-crypto, linux-kernel
On Fri, Aug 08, 2025 at 03:44:26PM +0800, Qianfeng Rong wrote:
> 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(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ 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;
as well as URLs for NNTP newsgroup(s).