Skip to contentSkip to conversation

mm-memblock-remove-redundant-assignment-to-variable-max_addr.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 3, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/memblock.c: remove redundant assignment to variable max_addr
has been removed from the -mm tree. Its filename was
mm-memblock-remove-redundant-assignment-to-variable-max_addr.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Colin Ian King <[email protected]>
Subject: mm/memblock.c: remove redundant assignment to variable max_addr

The variable max_addr is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")

---

 mm/memblock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memblock.c renamed from mm/memblock.c~mm-memblock-remove-redundant-assignment-to-variable-max_addr +1 -1
@@ -1698,7 +1698,7 @@ static phys_addr_t __init_memblock __fin
 
 void __init memblock_enforce_memory_limit(phys_addr_t limit)
 {
-	phys_addr_t max_addr = PHYS_ADDR_MAX;
+	phys_addr_t max_addr;
 
 	if (!limit)
 		return;

_

Patches currently in -mm which might be from [email protected] are

lib-test_lockup-fix-spelling-mistake-iteraions-iterations.patch reiserfs-clean-up-several-indentation-issues.patch