PCI: tegra: Add debugfs support
[firefly-linux-kernel-4.4.55.git] / fs / nfsd / auth.c
index 2645be435e75f53bd0d9758f7aa32b84af1eb4ad..72f44823adbbaca47890feaf735255646d66674c 100644 (file)
@@ -1,7 +1,6 @@
 /* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> */
 
 #include <linux/sched.h>
-#include <linux/user_namespace.h>
 #include "nfsd.h"
 #include "auth.h"
 
@@ -25,7 +24,6 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp)
        struct cred *new;
        int i;
        int flags = nfsexp_flags(rqstp, exp);
-       int ret;
 
        validate_process_creds();
 
@@ -86,8 +84,7 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp)
        return 0;
 
 oom:
-       ret = -ENOMEM;
        abort_creds(new);
-       return ret;
+       return -ENOMEM;
 }