Skip to contentSkip to conversation

mm-hmm-remove-redundant-variable-align_end.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/hmm: remove redundant variable align_end
has been removed from the -mm tree. Its filename was
mm-hmm-remove-redundant-variable-align_end.patch

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

------------------------------------------------------
From: Colin Ian King <[email protected]>
Subject: mm/hmm: remove redundant variable align_end

Variable align_end is assigned a value but it is never read, so the variable is redundant and can be removed. Cleans up the clang warning:
Value stored to 'align_end' is never read

---

 mm/hmm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/hmm.c renamed from mm/hmm.c~mm-hmm-remove-redundant-variable-align_end +1 -2
diff -puN mm/hmm.c~mm-hmm-remove-redundant-variable-align_end mm/hmm.c
@@ -803,11 +803,10 @@ static RADIX_TREE(hmm_devmem_radix, GFP_
 
 static void hmm_devmem_radix_release(struct resource *resource)
 {
-	resource_size_t key, align_start, align_size, align_end;
+	resource_size_t key, align_start, align_size;
 
 	align_start = resource->start & ~(PA_SECTION_SIZE - 1);
 	align_size = ALIGN(resource_size(resource), PA_SECTION_SIZE);
-	align_end = align_start + align_size - 1;
 
 	mutex_lock(&hmm_devmem_lock);
 	for (key = resource->start;

_

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

fat-remove-redundant-assignment-of-0-to-slots.patch