This commit is contained in:
Gregory Nutt
2019-05-26 12:33:42 -06:00
parent f60301665b
commit 788f77a9af
5 changed files with 7 additions and 13 deletions
+3 -3
View File
@@ -1456,7 +1456,7 @@ static int uart_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup)
/* Some sanity checking */
#ifdef CONFIG_DEBUG_FEATURES
if (!dev || !fds)
if (dev == NULL || fds == NULL)
{
return -ENODEV;
}
@@ -1555,11 +1555,11 @@ static int uart_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup)
}
}
else if (fds->priv)
else if (fds->priv != NULL)
{
/* This is a request to tear down the poll. */
struct pollfd **slot = (struct pollfd **)fds->priv;
FAR struct pollfd **slot = (FAR struct pollfd **)fds->priv;
#ifdef CONFIG_DEBUG_FEATURES
if (!slot)