PM / QOS: Use kcalloc() instead of kzalloc()
Subsystems (4)
PATCH 1/1 PM / QOS: Use kcalloc() instead of kzalloc()
Use 2-factor multiplication argument form kcalloc() instead of kzalloc().
Signed-off-by Erick Archer <[email protected]>
--- drivers/base/power/qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/qos.c +1 -1
@@ -201,7 +201,7 @@ static int dev_pm_qos_constraints_allocate(struct device *dev)if (!qos)return -ENOMEM ; - n =kzalloc (3 *sizeof (*n),GFP_KERNEL ); + n =kcalloc (3 ,sizeof (*n),GFP_KERNEL );if (!n) {kfree (qos);return -ENOMEM ;
--
2.42.0
Quoted 5 lines · Erick Archer
Use 2-factor multiplication argument form
kcalloc()instead ofkzalloc().Signed-off-by Erick Archer <[email protected]>
Reviewed-by Gustavo A. R. Silva <[email protected]>
Thanks!
Signature · 1 line
Gustavo
Quoted 21 lines
--- drivers/base/power/qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/base/power/qos.c +1
-2@@ -201,7 +201,7 @@ static int dev_pm_qos_constraints_allocate(struct device *dev)if (!qos)return -ENOMEM ; - n =kzalloc (3 *sizeof (*n),GFP_KERNEL ); + n =kcalloc (3 ,sizeof (*n),GFP_KERNEL );if (!n) {kfree (qos);return -ENOMEM ; --2.42.0
Quoted 11 lines · Gustavo A. R. Silva
Quoted 5 lines · Erick Archer
Use 2-factor multiplication argument form
kcalloc()instead ofkzalloc().Signed-off-by Erick Archer <[email protected]>Reviewed-by Gustavo A. R. Silva <[email protected]>
Applied as 6.8-rc1 material, thanks!
Quoted 21 lines
Quoted 21 lines
--- drivers/base/power/qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/base/power/qos.c +1
-2@@ -201,7 +201,7 @@ static int dev_pm_qos_constraints_allocate(struct device *dev)if (!qos)return -ENOMEM ; - n =kzalloc (3 *sizeof (*n),GFP_KERNEL ); + n =kcalloc (3 ,sizeof (*n),GFP_KERNEL );if (!n) {kfree (qos);return -ENOMEM ; --2.42.0