From: Anna Schumaker Date: Wed, 11 Jan 2017 21:59:48 +0000 (-0500) Subject: NFS: Return the comparison result directly in nfs41_match_stateid() X-Git-Tag: v4.11-rc1~33^2~40 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=045c551947a8c6e787437d696262b562520ff2f0;p=linux.git NFS: Return the comparison result directly in nfs41_match_stateid() Signed-off-by: Anna Schumaker --- 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 */