Review of last PR: Fix return value (ERROR is not a value return value in this context). Fix some spacing.

This commit is contained in:
Gregory Nutt 2016-11-01 15:13:09 -06:00
parent abf5b011b5
commit 8dd2494407

View File

@ -280,8 +280,9 @@ static int at24c_eraseall(FAR struct at24c_dev_s *priv)
finfo("wait\n");
if (!wait--)
{
return ERROR;
return -ETIMEDOUT;
}
usleep(1000);
}
@ -345,8 +346,9 @@ static ssize_t at24c_read_internal(FAR struct at24c_dev_s *priv, off_t offset,
finfo("wait\n");
if (!wait--)
{
return ERROR;
return -ETIMEDOUT;
}
usleep(1000);
}
@ -467,8 +469,9 @@ static ssize_t at24c_bwrite(FAR struct mtd_dev_s *dev, off_t startblock, size_t
finfo("wait\n");
if (!wait--)
{
return ERROR;
return -ETIMEDOUT;
}
usleep(1000);
}