diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index 1d803e9a4cefd9bc87db0bb1a5e029445e1f5526..89b544bc4ef6f9f7bf0b9fe8c9c2c7241a29557c 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -439,7 +439,7 @@ const static struct rt_device_ops pipe_ops = rt_pipe_write, rt_pipe_control, }; -#endif +#endif /* RT_USING_DEVICE_OPS */ rt_pipe_t *rt_pipe_create(const char *name, int bufsz) { @@ -481,7 +481,7 @@ rt_pipe_t *rt_pipe_create(const char *name, int bufsz) } #ifdef RT_USING_POSIX_DEVIO dev->fops = (void*)&pipe_fops; -#endif +#endif /* RT_USING_POSIX_DEVIO */ return pipe; }