Commit 045c5519 authored by Anna Schumaker's avatar Anna Schumaker

NFS: Return the comparison result directly in nfs41_match_stateid()

Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 49ad0145
...@@ -9116,10 +9116,8 @@ static bool nfs41_match_stateid(const nfs4_stateid *s1, ...@@ -9116,10 +9116,8 @@ static bool nfs41_match_stateid(const nfs4_stateid *s1,
if (s1->seqid == s2->seqid) if (s1->seqid == s2->seqid)
return true; return true;
if (s1->seqid == 0 || s2->seqid == 0)
return true;
return false; return s1->seqid == 0 || s2->seqid == 0;
} }
#endif /* CONFIG_NFS_V4_1 */ #endif /* CONFIG_NFS_V4_1 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment