lkml.org 
[lkml]   [2023]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] mm/gup: Clean up errors in gup.c
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
\
 
 \ /
  Last update: 2023-09-28 05:30    [W:0.057 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site