Checking ->mm is not needed, but too late if necessary.

Signed-off-by: Hillf Danton <dhi...@gmail.com>
---

--- a/kernel/sched/fair.c       Sat Nov 17 12:12:08 2012
+++ b/kernel/sched/fair.c       Sat Nov 17 12:14:26 2012
@@ -1125,7 +1125,7 @@ static void reset_ptenuma_scan(struct ta
        ACCESS_ONCE(p->mm->numa_scan_seq)++;
        p->mm->numa_scan_offset = 0;
        
-       if (p->mm && p->mm->mm_balancenuma)
+       if (p->mm->mm_balancenuma)
                p->mm->mm_balancenuma->mm_numa_fault_tot >>= 1;
        if (p->task_balancenuma) {
                int nid;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to