We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b364f commit a226950Copy full SHA for a226950
1 file changed
components/drivers/regulator/regulator.c
@@ -38,7 +38,7 @@ static rt_err_t regulator_disable(struct rt_regulator_node *reg_np);
38
39
static struct rt_regulator_record *regulator_find_record_by_name(const char *name)
40
{
41
- struct rt_regulator_record *record;
+ struct rt_regulator_record *record = RT_NULL;
42
43
rt_list_for_each_entry(record, &_regulator_records, list)
44
@@ -53,7 +53,7 @@ static struct rt_regulator_record *regulator_find_record_by_name(const char *nam
53
54
static struct rt_regulator_record *regulator_find_record_by_node(struct rt_regulator_node *reg_np)
55
56
57
58
59
0 commit comments