nfsd4: remove redundant "if" in nfs4_preprocess_stateid_op
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 21 Feb 2009 19:14:43 +0000 (11:14 -0800)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 18 Mar 2009 21:30:52 +0000 (17:30 -0400)
commitdc9bf700ed2fc3eab50f31000b13fda781e7c9f1
tree902919540f05e9cf175ce0b3942d7c2e12a8a3e2
parent0c2a498fa6d33d8ca9c8a0c29039c41e1734cb9e
nfsd4: remove redundant "if" in nfs4_preprocess_stateid_op

Note that we exit this first big "if" with stp == NULL if and only if we
took the first branch; therefore, the second "if" is redundant, and we
can just combine the two, simplifying the logic.

Reviewed-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c