Skip to contentSkip to conversation

mm/gup: Clean up errors in gup.c

PATCH In review KaiLong Wang 2 participants 2 messages Sep 28, 2023 – Oct 2, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/gup: Clean up errors in gup.c

Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

---
 mm/gup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/gup.c +1 -2
index 2f8a2d89fde1..aed327450250 100644
@@ -1480,8 +1480,7 @@ static __always_inline long __get_user_pages_locked(struct mm_struct *mm,
 			return -EAGAIN;
 		must_unlock = true;
 		*locked = 1;
-	}
-	else
+	} else
 		mmap_assert_locked(mm);
 
 	if (flags & FOLL_PIN)
Signature · 1 line
2.17.1
#1 lore raw
Quoted 14 lines · KaiLong Wang

Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

---
  mm/gup.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
mm/gup.c +0 -0
index 2f8a2d89fde1..aed327450250 100644

mm/gup.c static __always_inline long __get_user_pages_locked(struct mm_struct *mm, · line 1486

Quoted 9 lines
mm/gup.c +1 -2
@@ -1480,8 +1480,7 @@ static __always_inline long __get_user_pages_locked(struct mm_struct *mm,
  			return -EAGAIN;
  		must_unlock = true;
  		*locked = 1;
-	}
-	else
+	} else
  		mmap_assert_locked(mm);
 
  	if (flags & FOLL_PIN)

Please see Documentation/process/coding-style.rst "3) Placing Braces and Spaces"

Signature · 3 lines
Cheers,

David / dhildenb