Skip to contentSkip to conversation

ocfs2-remove-redundant-assignment-to-variable-free_space.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 20, 2022

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: ocfs2: remove redundant assignment to variable free_space
has been removed from the -mm tree. Its filename was
ocfs2-remove-redundant-assignment-to-variable-free_space.patch

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

------------------------------------------------------
From: Colin Ian King <[email protected]>
Subject: ocfs2: remove redundant assignment to variable free_space

Variable free_space is being initialized with a value that is not read, it is being re-assigned later in the two paths of an if statement. The early initialization is redundant and can be removed.

---

 fs/ocfs2/dir.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/dir.c renamed from fs/ocfs2/dir.c~ocfs2-remove-redundant-assignment-to-variable-free_space +1 -1
@@ -3343,7 +3343,7 @@ static int ocfs2_find_dir_space_id(struc
 	struct ocfs2_dir_entry *de, *last_de = NULL;
 	char *de_buf, *limit;
 	unsigned long offset = 0;
-	unsigned int rec_len, new_rec_len, free_space = dir->i_sb->s_blocksize;
+	unsigned int rec_len, new_rec_len, free_space;
 
 	/*
 	 * This calculates how many free bytes we'd have in block zero, should

_

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

kernel-sysctlc-remove-unused-variable-ten_thousand.patch