Skip to content

Commit

Permalink
NFS: Return the comparison result directly in nfs41_match_stateid()
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Schumaker <[email protected]>
  • Loading branch information
amschuma-ntap committed Jan 30, 2017
1 parent 49ad014 commit 045c551
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 045c551

Please sign in to comment.