From b7ec2692cfd3038f6ad09c6b2bab57a87cdfdbda Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Fri, 15 Nov 2024 14:00:54 +0800 Subject: [PATCH] [DM/FIXUP] Fixup pin propname check Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/pin/dev_pin_ofw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/pin/dev_pin_ofw.c b/components/drivers/pin/dev_pin_ofw.c index b9b2d1d51a..3e12678bbe 100644 --- a/components/drivers/pin/dev_pin_ofw.c +++ b/components/drivers/pin/dev_pin_ofw.c @@ -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; }