You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/02/17 21:08:54 UTC
[incubator-nuttx] 01/02: drivers/pipe: Fix the format style issue
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit fe04eb535f59d946f4bfbbeee6a336fcadbc7639
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Feb 9 02:09:59 2022 +0800
drivers/pipe: Fix the format style issue
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
drivers/pipes/pipe_common.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/pipes/pipe_common.c b/drivers/pipes/pipe_common.c
index 9a90585..03be346 100644
--- a/drivers/pipes/pipe_common.c
+++ b/drivers/pipes/pipe_common.c
@@ -396,12 +396,12 @@ int pipecommon_close(FAR struct file *filep)
ssize_t pipecommon_read(FAR struct file *filep, FAR char *buffer, size_t len)
{
- FAR struct inode *inode = filep->f_inode;
- FAR struct pipe_dev_s *dev = inode->i_private;
+ FAR struct inode *inode = filep->f_inode;
+ FAR struct pipe_dev_s *dev = inode->i_private;
#ifdef CONFIG_DEV_PIPEDUMP
- FAR uint8_t *start = (FAR uint8_t *)buffer;
+ FAR uint8_t *start = (FAR uint8_t *)buffer;
#endif
- ssize_t nread = 0;
+ ssize_t nread = 0;
int sval;
int ret;
@@ -680,8 +680,8 @@ ssize_t pipecommon_write(FAR struct file *filep, FAR const char *buffer,
int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
bool setup)
{
- FAR struct inode *inode = filep->f_inode;
- FAR struct pipe_dev_s *dev = inode->i_private;
+ FAR struct inode *inode = filep->f_inode;
+ FAR struct pipe_dev_s *dev = inode->i_private;
pollevent_t eventset;
pipe_ndx_t nbytes;
int ret;
@@ -719,8 +719,8 @@ int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
if (i >= CONFIG_DEV_PIPE_NPOLLWAITERS)
{
- fds->priv = NULL;
- ret = -EBUSY;
+ fds->priv = NULL;
+ ret = -EBUSY;
goto errout;
}
@@ -784,15 +784,15 @@ int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
#ifdef CONFIG_DEBUG_FEATURES
if (!slot)
{
- ret = -EIO;
+ ret = -EIO;
goto errout;
}
#endif
/* Remove all memory of the poll setup */
- *slot = NULL;
- fds->priv = NULL;
+ *slot = NULL;
+ fds->priv = NULL;
}
errout: