syslog_default_write: Fix the return value

Found by clang-check:

syslog/syslog_write.c:96:7: warning: Value stored to 'nwritten' is never read
      nwritten = g_syslog_channel->sc_write(buffer, buflen);
      ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
This commit is contained in:
YAMAMOTO Takashi 2020-07-30 11:31:57 +09:00 committed by Brennan Ashton
parent 9dcc6f6da6
commit 9274b67a45

View File

@ -105,7 +105,7 @@ static ssize_t syslog_default_write(FAR const char *buffer, size_t buflen)
}
}
return buflen;
return nwritten;
}
/****************************************************************************