Skip to content

Commit bc984dd

Browse files
akpm00sfrothwell
authored andcommitted
fs-proc-task_mmuc-simplify-the-vma_stop-logic-checkpatch-fixes
WARNING: Missing a blank line after declarations torvalds#50: FILE: fs/proc/task_mmu.c:135: + struct mm_struct *mm = priv->mm; + release_task_mempolicy(priv); ERROR: spaces required around that '?' (ctx:VxW) torvalds#86: FILE: fs/proc/task_mmu.c:220: + next = (vma != tail_vma)? tail_vma: NULL; ^ ERROR: spaces required around that ':' (ctx:VxW) torvalds#86: FILE: fs/proc/task_mmu.c:220: + next = (vma != tail_vma)? tail_vma: NULL; ^ total: 2 errors, 1 warnings, 65 lines checked ./patches/fs-proc-task_mmuc-simplify-the-vma_stop-logic.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 40e6cef commit bc984dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: fs/proc/task_mmu.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static void release_task_mempolicy(struct proc_maps_private *priv)
132132
static void vma_stop(struct proc_maps_private *priv)
133133
{
134134
struct mm_struct *mm = priv->mm;
135+
135136
release_task_mempolicy(priv);
136137
up_read(&mm->mmap_sem);
137138
mmput(mm);
@@ -217,7 +218,7 @@ static void *m_next(struct seq_file *m, void *v, loff_t *pos)
217218
if (vma && (vma != tail_vma) && vma->vm_next)
218219
return vma->vm_next;
219220

220-
next = (vma != tail_vma)? tail_vma: NULL;
221+
next = (vma != tail_vma) ? tail_vma : NULL;
221222
if (!next)
222223
vma_stop(priv);
223224
return next;

0 commit comments

Comments
 (0)