From: David Hildenbrand <david@redhat.com>
To: chenxiang <chenxiang66@hisilicon.com>,
sjenning@redhat.com, ddstreet@ieee.org
Cc: linuxarm@huawei.com, linux-mm@kvack.org
Subject: Re: [PATCH] mm/zbud: remove redundant initialization
Date: Tue, 22 Sep 2020 15:38:10 +0200 [thread overview]
Message-ID: <d8310346-de67-410c-6f5c-5b8d5cd0f042@redhat.com> (raw)
In-Reply-To: <1600419885-191907-1-git-send-email-chenxiang66@hisilicon.com>
On 18.09.20 11:04, chenxiang wrote:
> From: Xiang Chen <chenxiang66@hisilicon.com>
>
> zhdr is already initialized in the front of the function, so remove
> redundant initialization here.
>
> Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
> ---
> mm/zbud.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/zbud.c b/mm/zbud.c
> index bc93aa4..c49966e 100644
> --- a/mm/zbud.c
> +++ b/mm/zbud.c
> @@ -367,7 +367,6 @@ int zbud_alloc(struct zbud_pool *pool, size_t size, gfp_t gfp,
> spin_lock(&pool->lock);
>
> /* First, try to find an unbuddied zbud page. */
> - zhdr = NULL;
> for_each_unbuddied_list(i, chunks) {
> if (!list_empty(&pool->unbuddied[i])) {
> zhdr = list_first_entry(&pool->unbuddied[i],
>
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
prev parent reply other threads:[~2020-09-22 13:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 9:04 chenxiang
2020-09-22 13:38 ` David Hildenbrand [this message]
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=d8310346-de67-410c-6f5c-5b8d5cd0f042@redhat.com \
--to=david@redhat.com \
--cc=chenxiang66@hisilicon.com \
--cc=ddstreet@ieee.org \
--cc=linux-mm@kvack.org \
--cc=linuxarm@huawei.com \
--cc=sjenning@redhat.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: 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