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

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Wed Apr 28 00:29:19 2010 +0200

analogy: remove useless device declarations in read / write syscalls handlers

---

 ksrc/drivers/analogy/rtdm_interface.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/ksrc/drivers/analogy/rtdm_interface.c 
b/ksrc/drivers/analogy/rtdm_interface.c
index 99abf2f..2973b59 100644
--- a/ksrc/drivers/analogy/rtdm_interface.c
+++ b/ksrc/drivers/analogy/rtdm_interface.c
@@ -151,11 +151,9 @@ ssize_t a4l_rt_read(struct rtdm_dev_context * context,
                    rtdm_user_info_t * user_info, void *buf, size_t nbytes)
 {
        a4l_cxt_t cxt;
-       a4l_dev_t *dev;
 
        a4l_init_cxt(context, user_info, &cxt);
        a4l_set_dev(&cxt);
-       dev = a4l_get_dev(&cxt);
 
        __a4l_dbg(1, core_dbg, 
                  "a4l_rt_read: minor=%d\n", a4l_get_minor(&cxt));
@@ -171,11 +169,9 @@ ssize_t a4l_rt_write(struct rtdm_dev_context * context,
                     size_t nbytes)
 {
        a4l_cxt_t cxt;
-       a4l_dev_t *dev;
 
        a4l_init_cxt(context, user_info, &cxt);
        a4l_set_dev(&cxt);
-       dev = a4l_get_dev(&cxt);
 
        __a4l_dbg(1, core_dbg, "a4l_rt_write: minor=%d\n", a4l_get_minor(&cxt));
 


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

Reply via email to