Module: xenomai-3
Branch: master
Commit: 83ff26d5acc3b691718e3226d0159ae40e99f684
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=83ff26d5acc3b691718e3226d0159ae40e99f684

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Sun Jul 19 18:53:34 2015 +0200

cobalt/kernel: Remove write-only local variable from handle_schedule_event

prev is unused since the introduction of this function to forge.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/posix/process.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/cobalt/posix/process.c b/kernel/cobalt/posix/process.c
index 1d2309d..301df0b 100644
--- a/kernel/cobalt/posix/process.c
+++ b/kernel/cobalt/posix/process.c
@@ -1067,13 +1067,12 @@ static inline void signal_yield(void)
 static int handle_schedule_event(struct task_struct *next_task)
 {
        struct task_struct *prev_task;
-       struct xnthread *prev, *next;
+       struct xnthread *next;
        sigset_t pending;
 
        signal_yield();
 
        prev_task = current;
-       prev = xnthread_from_task(prev_task);
        next = xnthread_from_task(next_task);
        if (next == NULL)
                goto out;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to