[Cbe-oss-dev] [PATCH 3/4] libspe2: Fix expression to check result of poll()
Kazunori Asayama
asayama at sm.sony.co.jp
Wed Apr 25 22:35:37 EST 2007
Here is a patch to fix the expression to check result of poll()
syscall in spe_mfcio_tag_status_read() implementation.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
Index: libspe2-public/spebase/dma.c
===================================================================
--- libspe2-public.orig/spebase/dma.c
+++ libspe2-public/spebase/dma.c
@@ -251,7 +251,7 @@ static int spe_read_tag_status_noblock(s
if (ret < 0)
return -1;
- if (ret == 0 || !(poll_fd.revents | POLLIN)) {
+ if (ret == 0 || !(poll_fd.revents & POLLIN)) {
*tag_status = 0;
return 0;
}
More information about the cbe-oss-dev
mailing list