NFS: Return the comparison result directly in nfs41_match_stateid()
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 11 Jan 2017 21:59:48 +0000 (16:59 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 30 Jan 2017 18:14:50 +0000 (13:14 -0500)
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c

index bf014a2deefd70a042bced793dc27a4871bce3ba..aeaa6678b071e246340eecc838a6631d2aba9084 100644 (file)
@@ -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 */