Cosmetic change to force compliance with coding standard

This commit is contained in:
Gregory Nutt 2014-12-12 07:14:16 -06:00
parent b818691a3a
commit 1c569b85f8
2 changed files with 6 additions and 2 deletions

View File

@ -1028,7 +1028,7 @@ static void tiva_i2c_nextxfr(struct tiva_i2c_priv_s *priv, uint32_t cmd)
*/
cmd |= I2CM_CS_RUN;
if (priv->msgc < 2 && priv->dcnt < 2)
if (/* priv->msgc < 2 && */ priv->dcnt < 2)
{
/* This is the last byte of the last message... add the STOP bit */

View File

@ -56,7 +56,11 @@ char *strncpy(FAR char *dest, FAR const char *src, size_t n)
char *end = dest + n; /* End of dest buffer + 1 byte */
while ((dest != end) && (*dest++ = *src++) != '\0');
while (dest != end) *dest++ = '\0';
while (dest != end)
{
*dest++ = '\0';
}
return ret;
}
#endif