drivers/pipe: Fix the format style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
1911ae2192
commit
fe04eb535f
@ -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)
|
ssize_t pipecommon_read(FAR struct file *filep, FAR char *buffer, size_t len)
|
||||||
{
|
{
|
||||||
FAR struct inode *inode = filep->f_inode;
|
FAR struct inode *inode = filep->f_inode;
|
||||||
FAR struct pipe_dev_s *dev = inode->i_private;
|
FAR struct pipe_dev_s *dev = inode->i_private;
|
||||||
#ifdef CONFIG_DEV_PIPEDUMP
|
#ifdef CONFIG_DEV_PIPEDUMP
|
||||||
FAR uint8_t *start = (FAR uint8_t *)buffer;
|
FAR uint8_t *start = (FAR uint8_t *)buffer;
|
||||||
#endif
|
#endif
|
||||||
ssize_t nread = 0;
|
ssize_t nread = 0;
|
||||||
int sval;
|
int sval;
|
||||||
int ret;
|
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,
|
int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||||
bool setup)
|
bool setup)
|
||||||
{
|
{
|
||||||
FAR struct inode *inode = filep->f_inode;
|
FAR struct inode *inode = filep->f_inode;
|
||||||
FAR struct pipe_dev_s *dev = inode->i_private;
|
FAR struct pipe_dev_s *dev = inode->i_private;
|
||||||
pollevent_t eventset;
|
pollevent_t eventset;
|
||||||
pipe_ndx_t nbytes;
|
pipe_ndx_t nbytes;
|
||||||
int ret;
|
int ret;
|
||||||
@ -719,8 +719,8 @@ int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
|||||||
|
|
||||||
if (i >= CONFIG_DEV_PIPE_NPOLLWAITERS)
|
if (i >= CONFIG_DEV_PIPE_NPOLLWAITERS)
|
||||||
{
|
{
|
||||||
fds->priv = NULL;
|
fds->priv = NULL;
|
||||||
ret = -EBUSY;
|
ret = -EBUSY;
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -784,15 +784,15 @@ int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
|||||||
#ifdef CONFIG_DEBUG_FEATURES
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!slot)
|
if (!slot)
|
||||||
{
|
{
|
||||||
ret = -EIO;
|
ret = -EIO;
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Remove all memory of the poll setup */
|
/* Remove all memory of the poll setup */
|
||||||
|
|
||||||
*slot = NULL;
|
*slot = NULL;
|
||||||
fds->priv = NULL;
|
fds->priv = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
errout:
|
errout:
|
||||||
|
Loading…
Reference in New Issue
Block a user