projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b6c5f
)
find_filesystem(): simplify comparison
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 19 Jan 2016 16:40:44 +0000
(11:40 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 19 Jan 2016 17:02:23 +0000
(12:02 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/filesystems.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/filesystems.c
b/fs/filesystems.c
index 5797d45a78cb29fddcff617a8fc03139ed609369..c5618db110be454781d6c7b8a70f8284fa00a477 100644
(file)
--- a/
fs/filesystems.c
+++ b/
fs/filesystems.c
@@
-46,9
+46,9
@@
void put_filesystem(struct file_system_type *fs)
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 (str
len((*p)->name) == len
&&
-
strncmp((*p)->name, name, len) == 0
)
+ for (p
= &file_systems; *p; p =
&(*p)->next)
+ if (str
ncmp((*p)->name, name, len) == 0
&&
+
!(*p)->name[len]
)
break;
return p;
}