From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mark Brown <broonie@kernel.org>,
linux-spi <linux-spi@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 2/3] spi: Replace memset() with __GFP_ZERO
Date: Tue, 23 Nov 2021 19:02:51 +0200 [thread overview]
Message-ID: <CAHp75VcxxJe3dogyemBwERirEPCGYVmG1PFN8TknhsTL8swLjg@mail.gmail.com> (raw)
In-Reply-To: <20211123170034.41253-2-andriy.shevchenko@linux.intel.com>
On Tue, Nov 23, 2021 at 7:01 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> krealloc() as any other kernel memory allocation calls accepts GFP flags,
> one of which is __GFP_ZERO. Hence, no need to call memset() explicitly on
> the reallocated buffer.
This one is already applied, seconds before I have sent it.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2021-11-23 17:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-23 17:00 [PATCH v3 1/3] spi: Fix condition in the __spi_register_driver() Andy Shevchenko
2021-11-23 17:00 ` [PATCH v3 2/3] spi: Replace memset() with __GFP_ZERO Andy Shevchenko
2021-11-23 17:02 ` Andy Shevchenko [this message]
2021-11-23 17:00 ` [PATCH v3 3/3] spi: Fix multi-line comment style Andy Shevchenko
2021-11-23 17:02 ` Andy Shevchenko
2021-11-23 17:34 ` [PATCH v3 1/3] spi: Fix condition in the __spi_register_driver() Jon Hunter
2021-11-24 17:37 ` (subset) " Mark Brown
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=CAHp75VcxxJe3dogyemBwERirEPCGYVmG1PFN8TknhsTL8swLjg@mail.gmail.com \
--to=andy.shevchenko@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).