mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 10:19:47 +00:00
NFS: Return the comparison result directly in nfs41_match_stateid()
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
49ad0145c3
commit
045c551947
1 changed files with 1 additions and 3 deletions
|
@ -9116,10 +9116,8 @@ static bool nfs41_match_stateid(const nfs4_stateid *s1,
|
|||
|
||||
if (s1->seqid == s2->seqid)
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue