[DM/FIXUP] Fixup pin propname check

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2024-11-15 14:00:54 +08:00
parent 4f86d072ff
commit b7ec2692cf
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }