mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "KaiLong Wang" <wangkailong@jari.cn>
To: akpm@linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [PATCH] mm/gup: Clean up errors in gup.c
Date: Thu, 28 Sep 2023 11:28:18 +0800 (GMT+08:00)	[thread overview]
Message-ID: <1748b504.8b0.18ad9d487ae.Coremail.wangkailong@jari.cn> (raw)

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

             reply	other threads:[~2023-09-28  3:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-28  3:28 KaiLong Wang [this message]
2023-10-02 11:15 ` David Hildenbrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1748b504.8b0.18ad9d487ae.Coremail.wangkailong@jari.cn \
    --to=wangkailong@jari.cn \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®