* [PATCH] mm/gup: Clean up errors in gup.c
@ 2023-09-28 3:28 KaiLong Wang
2023-10-02 11:15 ` David Hildenbrand
0 siblings, 1 reply; 2+ messages in thread
From: KaiLong Wang @ 2023-09-28 3:28 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel
Fix the following errors reported by checkpatch:
ERROR: else should follow close brace '}'
Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
---
mm/gup.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mm/gup.c b/mm/gup.c
index 2f8a2d89fde1..aed327450250 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -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)
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/gup: Clean up errors in gup.c
2023-09-28 3:28 [PATCH] mm/gup: Clean up errors in gup.c KaiLong Wang
@ 2023-10-02 11:15 ` David Hildenbrand
0 siblings, 0 replies; 2+ messages in thread
From: David Hildenbrand @ 2023-10-02 11:15 UTC (permalink / raw)
To: KaiLong Wang, akpm; +Cc: linux-mm, linux-kernel
On 28.09.23 05:28, KaiLong Wang wrote:
> Fix the following errors reported by checkpatch:
>
> ERROR: else should follow close brace '}'
>
> Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
> ---
> mm/gup.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/mm/gup.c b/mm/gup.c
> index 2f8a2d89fde1..aed327450250 100644
> --- a/mm/gup.c
> +++ b/mm/gup.c
> @@ -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"
--
Cheers,
David / dhildenb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-02 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 3:28 [PATCH] mm/gup: Clean up errors in gup.c KaiLong Wang
2023-10-02 11:15 ` David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®