Skip to content

Commit 022e6f5

Browse files
Erick Archerrafaeljw
authored andcommitted
PM: QoS: Use kcalloc() instead of kzalloc()
Use 2-factor multiplication argument form kcalloc() instead of kzalloc(). Link: KSPP#162 Signed-off-by: Erick Archer <erick.archer@gmx.com> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 610a9b8 commit 022e6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/power/qos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int dev_pm_qos_constraints_allocate(struct device *dev)
201201
if (!qos)
202202
return -ENOMEM;
203203

204-
n = kzalloc(3 * sizeof(*n), GFP_KERNEL);
204+
n = kcalloc(3, sizeof(*n), GFP_KERNEL);
205205
if (!n) {
206206
kfree(qos);
207207
return -ENOMEM;

0 commit comments

Comments
 (0)