Skip to contentSkip to conversation

mm-secretmem-remove-redundant-initiialization-of-pointer-file.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 3, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/secretmem: remove redundant initiialization of pointer file
has been removed from the -mm tree. Its filename was
mm-secretmem-remove-redundant-initiialization-of-pointer-file.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Colin Ian King <[email protected]>
Subject: mm/secretmem: remove redundant initiialization of pointer file
Date: Mon, 16 Jan 2023 16:43:32 +0000

The pointer file is being initialized with a value that is never read, it is being re-assigned later on. Clean up code by removing the redundant initialization.

---

mm/secretmem.c renamed from mm/secretmem.c~mm-secretmem-remove-redundant-initiialization-of-pointer-file +1 -1
@@ -190,7 +190,7 @@ static struct vfsmount *secretmem_mnt;
 
 static struct file *secretmem_file_create(unsigned long flags)
 {
-	struct file *file = ERR_PTR(-ENOMEM);
+	struct file *file;
 	struct inode *inode;
 	const char *anon_name = "[secretmem]";
 	const struct qstr qname = QSTR_INIT(anon_name, strlen(anon_name));

_

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