proc: convert the return type of proc_fd_access_allowed() to be boolean
[sfrench/cifs-2.6.git] / fs / proc / base.c
index 13eda8de29981912b7809e6bab1ad289956b8701..d654ce7150fddb3098abd3b1210baab21ba5372e 100644 (file)
@@ -670,10 +670,10 @@ static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns,
 /************************************************************************/
 
 /* permission checks */
-static int proc_fd_access_allowed(struct inode *inode)
+static bool proc_fd_access_allowed(struct inode *inode)
 {
        struct task_struct *task;
-       int allowed = 0;
+       bool allowed = false;
        /* Allow access to a task's file descriptors if it is us or we
         * may use ptrace attach to the process and find out that
         * information.