diff options
author | Mark Brown <broonie@kernel.org> | 2025-03-18 18:34:29 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-03-18 18:34:29 +0300 |
commit | b7a253db0a3aa1d1ec293ccbfae41205d25e4273 (patch) | |
tree | 69a14ef25a868211a29a89ba5edb152d238941e0 /lib/debugobjects.c | |
parent | 1822c4484efeb8056de53bf4edfca377d2939418 (diff) | |
parent | 3602571baf9a6864bde89422d179e422a3ea4d8d (diff) | |
download | linux-b7a253db0a3aa1d1ec293ccbfae41205d25e4273.tar.xz |
ASoC: Intel: avs: Replace devm_kzalloc() with
Merge series from Ethan Carter Edwards <ethan@ethancedwards.com>:
Open coded arithmetic in allocator arguments is discouraged. Helper
functions like kcalloc or, in this case, devm_kcalloc are preferred. Not
only for readability purposes but safety purposes.
The changes move `devm_kzalloc(dev, sizeof(var) * n, GFP_KERNEL)` to
the helper function `devm_kcalloc(dev, n, sizeof(var), GFP_KERNEL)`.
Here is a series of four patches within the Intel/avs drivers that make
these changes. They are all compile tested only but should have no
effect on runtime behaviour.
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
Link: https://github.com/KSPP/linux/issues/162
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions