Skip to contentSkip to conversation

fix-code-style-warning.patch removed from -mm tree

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

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kernel/sysctl.c: code cleanups
has been removed from the -mm tree. Its filename was
fix-code-style-warning.patch

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

------------------------------------------------------
From: "Ola N. Kaldestad" <[email protected]>
Subject: kernel/sysctl.c: code cleanups

Remove unnecessary else block, remove redundant return and call to kfree in if block.

---

 kernel/sysctl.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
kernel/sysctl.c renamed from kernel/sysctl.c~fix-code-style-warning +3 -5
diff -puN kernel/sysctl.c~fix-code-style-warning kernel/sysctl.c
@@ -3127,14 +3127,12 @@ int proc_do_large_bitmap(struct ctl_tabl
 			else
 				bitmap_copy(bitmap, tmp_bitmap, bitmap_len);
 		}
-		kfree(tmp_bitmap);
 		*lenp -= left;
 		*ppos += *lenp;
-		return 0;
-	} else {
-		kfree(tmp_bitmap);
-		return err;
 	}
+
+	kfree(tmp_bitmap);
+	return err;
 }
 
 #else /* CONFIG_PROC_SYSCTL */

_

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