diff options
| author | Grissiom <[email protected]> | 2013-08-19 16:25:17 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-08-19 16:25:17 +0800 |
| commit | 0340300f89a924b30fd8042b76686a236720d3d7 (patch) | |
| tree | 0f8bf36fd8674b74f7b6a809ec45f634ada66ea7 /components | |
| parent | e8cca2315a790d61c743a71e1a682e6ace7866fd (diff) | |
dev/pipe: cleanup
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/src/pipe.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index f0368e87db..3f14e6a837 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -126,7 +126,6 @@ static void _rt_pipe_resume_reader(struct rt_pipe_device *pipe) } } -struct rt_pipe_device *_pipe = RT_NULL; static rt_size_t rt_pipe_write(rt_device_t dev, rt_off_t pos, const void *buffer, @@ -139,8 +138,6 @@ static rt_size_t rt_pipe_write(rt_device_t dev, pipe = PIPE_DEVICE(dev); RT_ASSERT(pipe != RT_NULL); - if (_pipe == RT_NULL) - _pipe = pipe; if ((pipe->flag & RT_PIPE_FLAG_FORCE_WR) || !(pipe->flag & RT_PIPE_FLAG_BLOCK_WR)) |
