diff options
author | Iliyan Malchev <malchev@google.com> | 2011-09-22 16:29:28 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-09-22 16:29:28 -0700 |
commit | 77524f268af814564a8714612a1470a6c0562f35 (patch) | |
tree | dd0eba96b415e33d7d263ac99fb583ccc53d83cc /libtiutils | |
parent | 15d9412758fde1512e05f7ac39c227e4557497b6 (diff) | |
download | hardware_ti_omap4-77524f268af814564a8714612a1470a6c0562f35.zip hardware_ti_omap4-77524f268af814564a8714612a1470a6c0562f35.tar.gz hardware_ti_omap4-77524f268af814564a8714612a1470a6c0562f35.tar.bz2 |
omap4xxx: fix errors and dead code in usage of pipe(2)
Change-Id: I7134e635316c2a118498d23521248016b73d6496
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'libtiutils')
-rwxr-xr-x | libtiutils/MessageQueue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiutils/MessageQueue.cpp b/libtiutils/MessageQueue.cpp index 1a5942a..35b4873 100755 --- a/libtiutils/MessageQueue.cpp +++ b/libtiutils/MessageQueue.cpp @@ -74,12 +74,12 @@ MessageQueue::~MessageQueue() { LOG_FUNCTION_NAME; - if(this->fd_read) + if(this->fd_read < 0) { close(this->fd_read); } - if(this->fd_write) + if(this->fd_write < 0) { close(this->fd_write); } |