mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 13:45:24 +08:00
[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];
|
||||
rt_ssize_t count = 0;
|
||||
|
||||
if (!np || !propname)
|
||||
if (!np)
|
||||
{
|
||||
return -RT_EINVAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user