mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user