]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: ccp - Remove redundant __GFP_ZERO
authorQianfeng Rong <rongqianfeng@vivo.com>
Fri, 8 Aug 2025 07:44:26 +0000 (15:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 16 Aug 2025 09:24:31 +0000 (17:24 +0800)
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>
drivers/crypto/ccp/hsti.c

index 1b39a4fb55c061bf6fa7030bb47b8da4f324ad3a..0ab3708951afe3292feb6b73e332e0360c2400f0 100644 (file)
@@ -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;