gcc-4.6: nfsd: fix initialized but not read warnings
Fixes at least one real minor bug: the nfs4 recovery dir sysctl
would not return its status properly.
Also I finished Al's 1e41568d73
("Take ima_path_check() in nfsd
past dentry_open() in nfsd_open()") commit, it moved the IMA
code, but left the old path initializer in there.
The rest is just dead code removed I think, although I was not
fully sure about the "is_borc" stuff. Some more review
would be still good.
Found by gcc 4.6's new warnings.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
committed by
J. Bruce Fields
parent
f9d7562fdb
commit
6904996101
@@ -290,7 +290,6 @@ nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp,
|
||||
* gospel of sun micro
|
||||
*/
|
||||
if (type != S_IFREG) {
|
||||
int is_borc = 0;
|
||||
if (type != S_IFBLK && type != S_IFCHR) {
|
||||
rdev = 0;
|
||||
} else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) {
|
||||
@@ -298,7 +297,6 @@ nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp,
|
||||
type = S_IFIFO;
|
||||
} else {
|
||||
/* Okay, char or block special */
|
||||
is_borc = 1;
|
||||
if (!rdev)
|
||||
rdev = wanted;
|
||||
}
|
||||
|
Reference in New Issue
Block a user