[DM/FIXUP] Fixup pin propname check
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
parent
7c59bb01ed
commit
16608279db
|
@ -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];
|
||||
rt_ssize_t count = 0;
|
||||
|
||||
if (!np || !propname)
|
||||
if (!np)
|
||||
{
|
||||
return -RT_EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue