diff options
author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-19 12:02:38 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-08-19 13:04:53 +0100 |
commit | c1dd310f1d76b4b13f1854618087af2513140897 (patch) | |
tree | 4d861b2e25212a99f7c220a8de9ca4ab7d626f7e /rust/helpers/processor.c | |
parent | f5accfde5d02a7c485c38c04e2204f3b4a7b847d (diff) |
spi: SPISG: Use devm_kcalloc() in aml_spisg_clk_init()
Replace calls of devm_kzalloc() with devm_kcalloc() in aml_spisg_clk_init()
for safer memory allocation with built-in overflow protection, and replace
sizeof(struct clk_div_table) with sizeof(*tbl) to shorten the line.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://patch.msgid.link/20250819040239.434863-1-rongqianfeng@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions