summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@gnu.org>2010-08-11 18:42:15 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-08-11 18:42:15 +0200
commit5d7ca35a182a626f8ed5596023ad42eb219a332e (patch)
treed91980fa13b1854528400c45ccca22216794ae8b /fs
parentnfs: Add "lookupcache" to displayed mount options (diff)
downloadlinux-5d7ca35a182a626f8ed5596023ad42eb219a332e.tar.xz
linux-5d7ca35a182a626f8ed5596023ad42eb219a332e.zip
nfs: Remove redundant NULL check upon kfree()
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 7ffbb98ddec3..6b44bbfb7d8a 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;
}