[PATCH] remove abundant code in memory.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch removes abundant code in memory.c

Thanks,
Jun


diff a/memory.c b/memory.c
--- a/memory.c
+++ b/memory.c
@@ -3369,7 +3369,6 @@ clear_vma_cache(void)
 void
 get_task_mem_usage(ulong task, struct task_mem_usage *tm)
 {
-       int rdflags;
        struct task_context *tc;

        BZERO(tm, sizeof(struct task_mem_usage));
@@ -3377,8 +3376,6 @@ get_task_mem_usage(ulong task, struct task_mem_usage *tm)
        if (IS_ZOMBIE(task) || IS_EXITING(task))
                return;

-       rdflags = ACTIVE() ? (QUIET|RETURN_ON_ERROR) : RETURN_ON_ERROR;
-
        tc = task_to_context(task);

        if (!tc || !tc->mm_struct)     /* probably a kernel thread */

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux