mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
Trivial update to some comments
This commit is contained in:
+2
-2
@@ -186,7 +186,7 @@ static int can_open(FAR struct file *filep)
|
|||||||
|
|
||||||
dev_rxint(dev, true);
|
dev_rxint(dev, true);
|
||||||
|
|
||||||
/* Save the new open count on success */
|
/* Save the new open count only on success */
|
||||||
|
|
||||||
dev->cd_ocount = 1;
|
dev->cd_ocount = 1;
|
||||||
}
|
}
|
||||||
@@ -195,7 +195,7 @@ static int can_open(FAR struct file *filep)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Save the incremented open count on success */
|
/* Save the incremented open count */
|
||||||
|
|
||||||
dev->cd_ocount = tmp;
|
dev->cd_ocount = tmp;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user