From: Davidlohr Bueso Date: Wed, 11 Aug 2010 16:42:15 +0000 (-0400) Subject: nfs: Remove redundant NULL check upon kfree() X-Git-Tag: upstream/snapshot3+hdmi~13194^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d7ca35a182a626f8ed5596023ad42eb219a332e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git nfs: Remove redundant NULL check upon kfree() Signed-off-by: Davidlohr Bueso Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 7ffbb98..6b44bbf 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct out: if (page) __free_page(page); - if (locations) - kfree(locations); + kfree(locations); return status; }