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

Commit e1a63bbc authored by Al Viro's avatar Al Viro
Browse files

restore_nameidata(): no need to clear now->stack



microoptimization: in all callers *now is in the frame we are about to leave.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 248fb5b9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -534,10 +534,8 @@ static void restore_nameidata(void)
	current->nameidata = old;
	if (old)
		old->total_link_count = now->total_link_count;
	if (now->stack != now->internal) {
	if (now->stack != now->internal)
		kfree(now->stack);
		now->stack = now->internal;
	}
}

static int __nd_alloc_stack(struct nameidata *nd)