Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 327dcaad authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[PATCH] expand_fdtable(): remove pointless unlock+lock



This unlock/lock on a super-unlikely path isn't worth the kernel text.

Cc: Vadim Lobanov <vlobanov@speakeasy.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 74d392aa
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -317,9 +317,7 @@ static int expand_fdtable(struct files_struct *files, int nr)
		free_fdtable(cur_fdt);
	} else {
		/* Somebody else expanded, so undo our attempt */
		spin_unlock(&files->file_lock);
		__free_fdtable(new_fdt);
		spin_lock(&files->file_lock);
	}
	return 1;
}