diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-11 22:59:48 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-30 19:14:50 +0100 |
commit | 045c551947a8c6e787437d696262b562520ff2f0 (patch) | |
tree | a01ee7fb22ab1b41a662dfb0c7f212069da8ad23 | |
parent | NFS: Clean up nfs41_same_server_scope() (diff) | |
download | linux-045c551947a8c6e787437d696262b562520ff2f0.tar.xz linux-045c551947a8c6e787437d696262b562520ff2f0.zip |
NFS: Return the comparison result directly in nfs41_match_stateid()
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r-- | fs/nfs/nfs4proc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index bf014a2deefd..aeaa6678b071 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -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 */ |