lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240314005436.2962962-2-mcgrof@kernel.org>
Date: Wed, 13 Mar 2024 17:54:33 -0700
From: Luis Chamberlain <mcgrof@...nel.org>
To: akpm@...ux-foundation.org,
	jhubbard@...dia.com,
	vbabka@...e.cz,
	mgorman@...e.de,
	linux-mm@...ck.org
Cc: linux-kernel@...r.kernel.org,
	dave@...olabs.net,
	p.raghav@...sung.com,
	da.gomez@...sung.com,
	mcgrof@...nel.org
Subject: [PATCH 1/3] mm/show_mem: simplify ifdef on si_meminfo_node()

There is an ifdef where the same exact values are used at
the end, so remove the else and keep the same values for both
conditions.

Signed-off-by: Luis Chamberlain <mcgrof@...nel.org>
---
 mm/show_mem.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/mm/show_mem.c b/mm/show_mem.c
index 8dcfafbd283c..529d2f9b6410 100644
--- a/mm/show_mem.c
+++ b/mm/show_mem.c
@@ -108,12 +108,9 @@ void si_meminfo_node(struct sysinfo *val, int nid)
 			free_highpages += zone_page_state(zone, NR_FREE_PAGES);
 		}
 	}
+#endif
 	val->totalhigh = managed_highpages;
 	val->freehigh = free_highpages;
-#else
-	val->totalhigh = managed_highpages;
-	val->freehigh = free_highpages;
-#endif
 	val->mem_unit = PAGE_SIZE;
 }
 #endif
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ