summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs3/namei.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/ntfs3/namei.c b/fs/ntfs3/namei.c
index 315763eb05ff..5d3a6ce3f05f 100644
--- a/fs/ntfs3/namei.c
+++ b/fs/ntfs3/namei.c
@@ -431,10 +431,8 @@ static int ntfs_d_compare(const struct dentry *dentry, unsigned int len1,
/* First try fast implementation. */
for (;;) {
- if (!lm--) {
- ret = len1 == len2 ? 0 : 1;
- goto out;
- }
+ if (!lm--)
+ return len1 == len2 ? 0 : 1;
if ((c1 = *n1++) == (c2 = *n2++))
continue;
@@ -442,10 +440,8 @@ static int ntfs_d_compare(const struct dentry *dentry, unsigned int len1,
if (c1 >= 0x80 || c2 >= 0x80)
break;
- if (toupper(c1) != toupper(c2)) {
- ret = 1;
- goto out;
- }
+ if (toupper(c1) != toupper(c2))
+ return 1;
}
/*