syslog: syslog_device ops are handled internally by the driver.

This commit is contained in:
Fotis Panagiotopoulos
2021-04-07 17:35:18 +03:00
committed by Xiang Xiao
parent 4ca34ac5b5
commit ee7276e7a7
10 changed files with 190 additions and 415 deletions
-2
View File
@@ -94,7 +94,6 @@ static ssize_t syslog_default_write(FAR const char *buffer, size_t buflen)
break;
}
#ifdef CONFIG_SYSLOG_WRITE
if (g_syslog_channel[i]->sc_ops->sc_write)
{
nwritten =
@@ -102,7 +101,6 @@ static ssize_t syslog_default_write(FAR const char *buffer, size_t buflen)
buffer, buflen);
}
else
#endif
{
DEBUGASSERT(g_syslog_channel[i]->sc_ops->sc_putc != NULL);