Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Commit 99e3148

Browse files
akpm00broonie
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 3baa367 commit 99e3148

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/proc/task_mmu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ static void release_task_mempolicy(struct proc_maps_private *priv)
114114
static void vma_stop(struct proc_maps_private *priv)
115115
{
116116
struct mm_struct *mm = priv->mm;
117+
117118
release_task_mempolicy(priv);
118119
up_read(&mm->mmap_sem);
119120
mmput(mm);
@@ -199,7 +200,7 @@ static void *m_next(struct seq_file *m, void *v, loff_t *pos)
199200
if (vma && (vma != tail_vma) && vma->vm_next)
200201
return vma->vm_next;
201202

202-
next = (vma != tail_vma)? tail_vma: NULL;
203+
next = (vma != tail_vma) ? tail_vma : NULL;
203204
if (!next)
204205
vma_stop(priv);
205206
return next;

0 commit comments

Comments
 (0)