Module: xenomai-abe
Branch: analogy
Commit: 2fb0fcf170aafb241e4ee5c3e96a667b87038b1e
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=2fb0fcf170aafb241e4ee5c3e96a667b87038b1e

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Thu Nov 19 13:02:57 2009 +0100

analogy: fix positive error code in transfer cleanup

---

 ksrc/drivers/analogy/transfer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/analogy/transfer.c b/ksrc/drivers/analogy/transfer.c
index d654329..c6306d9 100644
--- a/ksrc/drivers/analogy/transfer.c
+++ b/ksrc/drivers/analogy/transfer.c
@@ -56,7 +56,7 @@ int a4l_cleanup_transfer(a4l_cxt_t * cxt)
                if (test_bit(A4L_TSF_BUSY, &(tsf->status[i]))) {
                        __a4l_err("a4l_cleanup_transfer: "
                                  "device busy, acquisition occuring\n");
-                       return EBUSY;
+                       return -EBUSY;
                }
 
                if (test_bit(A4L_TSF_MMAP, &(tsf->status[i]))) {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to