From: Kristaps Civkulis <kristaps.civkulis@gmail.com> To: akpm@linux-foundation.org Cc: mhocko@suse.com, mike.kravetz@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kristaps Civkulis <kristaps.civkulis@gmail.com> Subject: [PATCH 3/3] mm: fix a coding style issue Date: Thu, 23 Mar 2017 09:49:02 +0200 [thread overview] Message-ID: <20170323074902.23768-1-kristaps.civkulis@gmail.com> (raw) Fix a coding style issue. Signed-off-by: Kristaps Civkulis <kristaps.civkulis@gmail.com> --- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3d0aab9ee80d..4c72c1974c8c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1916,8 +1916,7 @@ static long __vma_reservation_common(struct hstate *h, return 0; else return 1; - } - else + } else return ret < 0 ? ret : 0; } -- 2.12.0
WARNING: multiple messages have this Message-ID (diff)
From: Kristaps Civkulis <kristaps.civkulis@gmail.com> To: akpm@linux-foundation.org Cc: mhocko@suse.com, mike.kravetz@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kristaps Civkulis <kristaps.civkulis@gmail.com> Subject: [PATCH 3/3] mm: fix a coding style issue Date: Thu, 23 Mar 2017 09:49:02 +0200 [thread overview] Message-ID: <20170323074902.23768-1-kristaps.civkulis@gmail.com> (raw) Fix a coding style issue. Signed-off-by: Kristaps Civkulis <kristaps.civkulis@gmail.com> --- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3d0aab9ee80d..4c72c1974c8c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1916,8 +1916,7 @@ static long __vma_reservation_common(struct hstate *h, return 0; else return 1; - } - else + } else return ret < 0 ? ret : 0; } -- 2.12.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2017-03-23 7:50 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-03-23 7:49 Kristaps Civkulis [this message] 2017-03-23 7:49 ` [PATCH 3/3] mm: fix a coding style issue Kristaps Civkulis 2017-03-23 8:12 ` [PATCH] " Kristaps Civkulis 2017-03-23 8:12 ` Kristaps Civkulis 2017-03-24 7:22 ` Michal Hocko 2017-03-24 7:22 ` Michal Hocko
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=20170323074902.23768-1-kristaps.civkulis@gmail.com \ --to=kristaps.civkulis@gmail.com \ --cc=akpm@linux-foundation.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=mhocko@suse.com \ --cc=mike.kravetz@oracle.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.