[alsa-devel] [PATCH] fix error returned by compress_wait()

Vinod Koul vinod.koul at intel.com
Wed Jul 24 19:56:17 CEST 2013


From: Eric Laurent <elaurent at google.com>

oops() expects positive error codes.

Signed-off-by: Eric Laurent <elaurent at google.com>
Signed-off-by: Vinod Koul <vinod.koul at intel.com>
---
 compress.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/compress.c b/compress.c
index 734fbbf..0e71c28 100644
--- a/compress.c
+++ b/compress.c
@@ -623,7 +623,7 @@ int compress_wait(struct compress *compress, int timeout_ms)
 		return 0;
 	}
 	if (fds.revents & POLLERR) {
-		return oops(compress, -EIO, "poll returned error!");
+		return oops(compress, EIO, "poll returned error!");
 	}
 	return ret;
 }
-- 
1.7.0.4



More information about the Alsa-devel mailing list