net/semantic/parser: fix compile warning found by sparse

Reference:
https://linux.die.net/man/1/sparse

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2023-05-30 13:28:05 +08:00
committed by Xiang Xiao
parent fb9b41221d
commit 589d4a9f8e
11 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -1423,7 +1423,7 @@ static int netdev_rt_ioctl(FAR struct socket *psock, int cmd,
{
/* The target address and the netmask are required values */
if (rtentry == 0)
if (rtentry == NULL)
{
return -EINVAL;
}