[DM/FIXUP] Fixup pin propname check
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
parent
4f86d072ff
commit
b7ec2692cf
|
@ -148,7 +148,7 @@ rt_ssize_t rt_ofw_get_named_pin_count(struct rt_ofw_node *np, const char *propna
|
||||||
char gpios_name[64];
|
char gpios_name[64];
|
||||||
rt_ssize_t count = 0;
|
rt_ssize_t count = 0;
|
||||||
|
|
||||||
if (!np || !propname)
|
if (!np)
|
||||||
{
|
{
|
||||||
return -RT_EINVAL;
|
return -RT_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue