From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: cfredric <chris.p.fredrickson@gmail.com>,
gregkh@linuxfoundation.org, stern@rowland.harvard.edu,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fixing style warnings.
Date: Tue, 03 Mar 2015 08:59:00 +0100 [thread overview]
Message-ID: <54F569C4.3070409@linutronix.de> (raw)
In-Reply-To: <20150303051954.GA23116@khanti>
On 03/03/2015 06:19 AM, cfredric wrote:
> Signed-off-by: cfredric <chris.p.fredrickson@gmail.com>
You could use your full name here.
> ---
> drivers/usb/core/buffer.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/core/buffer.c b/drivers/usb/core/buffer.c
> index 506b969..89f2e77 100644
> --- a/drivers/usb/core/buffer.c
> +++ b/drivers/usb/core/buffer.c
> @@ -70,7 +70,7 @@ int hcd_buffer_create(struct usb_hcd *hcd)
> size = pool_max[i];
> if (!size)
> continue;
> - snprintf(name, sizeof name, "buffer-%d", size);
> + snprintf(name, sizeof(name), "buffer-%d", size);
This looks like checkpactch warning you fixed. You could add something
to the patch description that says so.
> hcd->pool[i] = dma_pool_create(name, hcd->self.controller,
> size, size, 0);
> if (!hcd->pool[i]) {
> @@ -95,6 +95,7 @@ void hcd_buffer_destroy(struct usb_hcd *hcd)
>
> for (i = 0; i < HCD_BUFFER_POOLS; i++) {
> struct dma_pool *pool = hcd->pool[i];
> +
This looks unrelated.
> if (pool) {
> dma_pool_destroy(pool);
> hcd->pool[i] = NULL;
>
Sebastian
prev parent reply other threads:[~2015-03-03 7:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 5:19 [PATCH] Fixing style warnings cfredric
2015-03-03 7:59 ` Sebastian Andrzej Siewior [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=54F569C4.3070409@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=chris.p.fredrickson@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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