Skip to contentSkip to conversation

mm-vmscanc-clean-code-by-removing-unnecessary-assignment.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/vmscan.c: clean code by removing unnecessary assignment
has been removed from the -mm tree. Its filename was
mm-vmscanc-clean-code-by-removing-unnecessary-assignment.patch

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

------------------------------------------------------
From: Mateusz Nosek <[email protected]>
Subject: mm/vmscan.c: clean code by removing unnecessary assignment

Previously 0 was assigned to variable 'lruvec_size', but the variable was never read later. So the assignment can be removed.

---

 mm/vmscan.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscanc-clean-code-by-removing-unnecessary-assignment +1 -3
@@ -2427,10 +2427,8 @@ out:
 		case SCAN_FILE:
 		case SCAN_ANON:
 			/* Scan one type exclusively */
-			if ((scan_balance == SCAN_FILE) != file) {
-				lruvec_size = 0;
+			if ((scan_balance == SCAN_FILE) != file)
 				scan = 0;
-			}
 			break;
 		default:
 			/* Look ma, no brain */

_

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

mm-shmemc-clean-code-by-removing-unnecessary-assignment.patch mm-mm_initc-clean-code-use-build_bug_on-when-comparing-compile-time-constant.patch mm-dmapoolc-micro-optimisation-remove-unnecessary-branch.patch