]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
sched: Cleanup: remove unused variable in try_to_wake_up()
authorDan Carpenter <error27@gmail.com>
Sat, 6 Mar 2010 11:17:52 +0000 (14:17 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Mar 2010 12:59:59 +0000 (13:59 +0100)
We haven't used the "orig_rq" variable since
055a00865d "Fix/add missing update_rq_clock() calls"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: efault@gmx.de
LKML-Reference: <20100306111752.GL4958@bicker>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 6a212c97f52394b780c52bf100e61a88ef856aab..2c1db81f80eb87ee12f68e0a020aa61d287e6cec 100644 (file)
@@ -2359,7 +2359,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state,
 {
        int cpu, orig_cpu, this_cpu, success = 0;
        unsigned long flags;
-       struct rq *rq, *orig_rq;
+       struct rq *rq;
 
        if (!sched_feat(SYNC_WAKEUPS))
                wake_flags &= ~WF_SYNC;
@@ -2367,7 +2367,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state,
        this_cpu = get_cpu();
 
        smp_wmb();
-       rq = orig_rq = task_rq_lock(p, &flags);
+       rq = task_rq_lock(p, &flags);
        update_rq_clock(rq);
        if (!(p->state & state))
                goto out;