mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
fs/ntfs3: Eliminate unnecessary ternary operator in ntfs_d_compare()
'a == b ? 0 : 1' is logically equivalent to 'a != b'. Suggested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
019d22eb0e
commit
75b5e47201
1 changed files with 1 additions and 1 deletions
|
@ -432,7 +432,7 @@ static int ntfs_d_compare(const struct dentry *dentry, unsigned int len1,
|
|||
/* First try fast implementation. */
|
||||
for (;;) {
|
||||
if (!lm--)
|
||||
return len1 == len2 ? 0 : 1;
|
||||
return len1 != len2;
|
||||
|
||||
if ((c1 = *n1++) == (c2 = *n2++))
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue