Skip to content

[components][drivers]fix some uninitialize err #8806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ rt_ssize_t rt_ofw_count_of_clk(struct rt_ofw_node *clk_ofw_np)

if (prop)
{
rt_uint32_t max_idx, idx;
rt_uint32_t max_idx = 0, idx;

for (cell = rt_ofw_prop_next_u32(prop, RT_NULL, &idx);
cell;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/ofw/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ struct rt_ofw_node *rt_ofw_get_cpu_node(int cpu, int *thread, rt_bool_t (*match_

rt_ofw_foreach_cpu_node(cpu_np)
{
rt_ssize_t prop_len;
rt_ssize_t prop_len = 0;
rt_bool_t is_end = RT_FALSE;
int tid, addr_cells = rt_ofw_io_addr_cells(cpu_np);
const fdt32_t *cell = rt_ofw_prop_read_raw(cpu_np, propname, &prop_len);
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/ofw/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static rt_err_t ofw_parse_irq_map(struct rt_ofw_node *np, struct rt_ofw_cell_arg
struct rt_ofw_node *ic_np = RT_NULL;
const fdt32_t *addr, *map, *map_mask;
int child_address_cells, child_interrupt_cells;
int parent_address_cells, parent_interrupt_cells;
int parent_address_cells = 0, parent_interrupt_cells = 0;
int addr_cells, pin_cells, icaddr_cells, idx1, idx2, limit;

/*
Expand Down
Loading