cred: get rid of CONFIG_DEBUG_CREDENTIALS
[linux-2.6-block.git] / fs / open.c
index 02dc608d40d81f90c9427695763c85d0fd111e93..3494a9cd8046c42a0f9b681c87285e922a8afa40 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -1088,8 +1088,6 @@ struct file *dentry_open(const struct path *path, int flags,
        int error;
        struct file *f;
 
-       validate_creds(cred);
-
        /* We must always pass in a valid mount pointer. */
        BUG_ON(!path->mnt);
 
@@ -1128,7 +1126,6 @@ struct file *dentry_create(const struct path *path, int flags, umode_t mode,
        struct file *f;
        int error;
 
-       validate_creds(cred);
        f = alloc_empty_file(flags, cred);
        if (IS_ERR(f))
                return f;