Skip to content

Commit

Permalink
nfsd: remove redundant test from nfsd_reply_cache_free
Browse files Browse the repository at this point in the history
Entries can only get a c_type of RC_REPLBUFF iff they are
RC_DONE. Therefore the test for RC_DONE isn't necessary here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Feb 4, 2013
1 parent f09841f commit 25e6b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ nfsd_reply_cache_alloc(void)
static void
nfsd_reply_cache_free_locked(struct svc_cacherep *rp)
{
if (rp->c_state == RC_DONE && rp->c_type == RC_REPLBUFF)
if (rp->c_type == RC_REPLBUFF)
kfree(rp->c_replvec.iov_base);
list_del(&rp->c_lru);
kmem_cache_free(drc_slab, rp);
Expand Down

0 comments on commit 25e6b8b

Please sign in to comment.