mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 05:14:27 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user