aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/cppc
diff options
context:
space:
mode:
authorHuang Borong <huangborong@bosc.ac.cn>2025-01-03 10:38:28 +0800
committerAnup Patel <anup@brainfault.org>2025-02-11 16:58:24 +0530
commita76aca030d1b2026d9b1b8867d59bb57bd47241a (patch)
tree9f06a825198c1d0e7f296f92554dcc5d41fc12e1 /lib/utils/cppc
parent555055d14534e436073c818e04f4a5f0d3c141dc (diff)
downloadopensbi-a76aca030d1b2026d9b1b8867d59bb57bd47241a.zip
opensbi-a76aca030d1b2026d9b1b8867d59bb57bd47241a.tar.gz
opensbi-a76aca030d1b2026d9b1b8867d59bb57bd47241a.tar.bz2
lib: utils/fdt: update fdt_parse_aplic_node()
1. Initialize struct imsic_data imsic to 0 at definition to prevent the use of uninitialized memory, ensuring the variable starts with known values. 2. Remove the redundant memset call on the "aplic" parameter since the memory for aplic is allocated using sbi_zalloc() by the caller irqchip_aplic_cold_init(), which guarantees it is already set to 0. Signed-off-by: Huang Borong <huangborong@bosc.ac.cn> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions