Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25e6b8b0 authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields
Browse files

nfsd: remove redundant test from nfsd_reply_cache_free



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: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent f09841fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -65,7 +65,7 @@ nfsd_reply_cache_alloc(void)
static void
static void
nfsd_reply_cache_free_locked(struct svc_cacherep *rp)
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);
		kfree(rp->c_replvec.iov_base);
	list_del(&rp->c_lru);
	list_del(&rp->c_lru);
	kmem_cache_free(drc_slab, rp);
	kmem_cache_free(drc_slab, rp);