]> granicus.if.org Git - procps-ng/commitdiff
library: whack a superfluous assignment, <MEMINFO> api
authorJim Warner <james.warner@comcast.net>
Mon, 6 Jun 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Thu, 9 Jun 2016 10:51:06 +0000 (20:51 +1000)
This patch was prompted through work on the <slabinfo>
upgrade from 2nd gen to 3rd. And while this assignment
caused no real harm, it most certainly was misleading.

[ plus add a couple of overlooked #undef directives! ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/meminfo.c

index 3e7064be0393c64d4430255933165e0e8c7d19fa..38dc8a628014bf850d612180cebe6a7ef1305b44 100644 (file)
@@ -460,6 +460,8 @@ enum meminfo_item PROCPS_MEMINFO_logical_end = PROCPS_MEMINFO_SWAP_USED + 1;
 #undef getDECL
 #undef MEM_get
 #undef HST_get
+#undef RS
+#undef RG
 
 // ___ Private Functions ||||||||||||||||||||||||||||||||||||||||||||||||||||||
 
@@ -1002,7 +1004,7 @@ PROCPS_EXPORT struct meminfo_stack *procps_meminfo_select (
             extents_free_all(info);
     }
     if (!info->extents
-    && !(info->extents = stacks_alloc(info, 1)))
+    && !(stacks_alloc(info, 1)))
        return NULL;
 
     if (info->dirty_stacks)