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.14-rc1~1210^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=045c551947a8c6e787437d696262b562520ff2f0;p=platform%2Fkernel%2Flinux-rpi3.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 bf014a2..aeaa667 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 */