diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-19 07:02:38 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-08-19 15:04:53 +0300 |
| commit | c1dd310f1d76b4b13f1854618087af2513140897 (patch) | |
| tree | 4d861b2e25212a99f7c220a8de9ca4ab7d626f7e /rust/helpers | |
| parent | f5accfde5d02a7c485c38c04e2204f3b4a7b847d (diff) | |
| download | linux-c1dd310f1d76b4b13f1854618087af2513140897.tar.xz | |
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')
0 files changed, 0 insertions, 0 deletions
