Cosmetic change to force compliance with coding standard
This commit is contained in:
parent
b818691a3a
commit
1c569b85f8
@ -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 */
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user