projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfs: remove kfree() redundant null checks
[cascardo/linux.git]
/
fs
/
nfs
/
getroot.c
diff --git
a/fs/nfs/getroot.c
b/fs/nfs/getroot.c
index
033803c
..
44efaa8
100644
(file)
--- a/
fs/nfs/getroot.c
+++ b/
fs/nfs/getroot.c
@@
-126,8
+126,7
@@
struct dentry *nfs_get_root(struct super_block *sb, struct nfs_fh *mntfh,
}
spin_unlock(&ret->d_lock);
out:
- if (name)
- kfree(name);
+ kfree(name);
nfs_free_fattr(fsinfo.fattr);
return ret;
}