* [PATCH] fix error returned by compress_wait()
@ 2013-07-24 17:56 Vinod Koul
0 siblings, 0 replies; only message in thread
From: Vinod Koul @ 2013-07-24 17:56 UTC (permalink / raw)
To: alsa-devel; +Cc: Vinod Koul, Eric Laurent
From: Eric Laurent <elaurent@google.com>
oops() expects positive error codes.
Signed-off-by: Eric Laurent <elaurent@google.com>
Signed-off-by: Vinod Koul <vinod.koul@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-24 18:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24 17:56 [PATCH] fix error returned by compress_wait() Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).