diff options
Diffstat (limited to 'sys/fs/procfs/procfs_dbregs.c')
-rw-r--r-- | sys/fs/procfs/procfs_dbregs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c index c21597f..9487569 100644 --- a/sys/fs/procfs/procfs_dbregs.c +++ b/sys/fs/procfs/procfs_dbregs.c @@ -97,10 +97,6 @@ int procfs_validdbregs(p) struct proc *p; { - int valid; - PROC_LOCK(p); - valid = (p->p_flag & P_SYSTEM) == 0; - PROC_UNLOCK(p); - return (valid); + return ((p->p_flag & P_SYSTEM) == 0); } |