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

Commit 558041d8 authored by Al Viro's avatar Al Viro
Browse files

find_filesystem(): simplify comparison



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c7b6c5fe
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -47,8 +47,8 @@ static struct file_system_type **find_filesystem(const char *name, unsigned len)
{
	struct file_system_type **p;
	for (p = &file_systems; *p; p = &(*p)->next)
		if (strlen((*p)->name) == len &&
		    strncmp((*p)->name, name, len) == 0)
		if (strncmp((*p)->name, name, len) == 0 &&
		    !(*p)->name[len])
			break;
	return p;
}