From: Joe Perches <joe@perches.com>
To: Cristiane Naves <cristianenavescardoso09@gmail.com>,
outreachy-kernel@googlegroups.com
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
Florian Schilhabel <florian.c.schilhabel@googlemail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [RESEND PATCH 1/2] staging: rtl8712: Fix Alignment of open parenthesis
Date: Fri, 25 Oct 2019 18:50:25 -0700 [thread overview]
Message-ID: <25960b2a5dfe3f5f2c6579ef718f90a139ba84d7.camel@perches.com> (raw)
In-Reply-To: <e3842148b6dd01c47678f517a07772c75046c50f.1572051351.git.cristianenavescardoso09@gmail.com>
On Fri, 2019-10-25 at 22:09 -0300, Cristiane Naves wrote:
> Fix alignment should match open parenthesis.Issue found by checkpatch.
Beyond doing style cleanups, please always try
to make the code more readable.
> diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c
[]
> @@ -61,13 +61,13 @@ void r8712_init_recv_priv(struct recv_priv *precvpriv,
> precvbuf->ref_cnt = 0;
> precvbuf->adapter = padapter;
> list_add_tail(&precvbuf->list,
> - &(precvpriv->free_recv_buf_queue.queue));
> + &(precvpriv->free_recv_buf_queue.queue));
Please remove the unnecessary parentheses too
> precvbuf++;
> }
> precvpriv->free_recv_buf_queue_cnt = NR_RECVBUFF;
> tasklet_init(&precvpriv->recv_tasklet,
> - (void(*)(unsigned long))recv_tasklet,
> - (unsigned long)padapter);
> + (void(*)(unsigned long))recv_tasklet,
> + (unsigned long)padapter);
It's probably better to change the recv_tasklet function
declaration to
use the more common style of
static void recv_tasklet(unsigned long priv)
and do the cast in the recv_tasklet function.
next prev parent reply other threads:[~2019-10-26 1:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-26 1:09 [RESEND PATCH 0/2] Cleanup in rtl8712 Cristiane Naves
2019-10-26 1:09 ` [RESEND PATCH 1/2] staging: rtl8712: Fix Alignment of open parenthesis Cristiane Naves
2019-10-26 1:50 ` Joe Perches [this message]
2019-10-28 8:01 ` Dan Carpenter
2019-10-28 8:09 ` Joe Perches
2019-10-26 18:04 ` Greg Kroah-Hartman
2019-10-26 1:10 ` [RESEND PATCH 2/2] staging: rtl8712: Remove lines before a close brace Cristiane Naves
2019-10-26 18:05 ` Greg Kroah-Hartman
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=25960b2a5dfe3f5f2c6579ef718f90a139ba84d7.camel@perches.com \
--to=joe@perches.com \
--cc=Larry.Finger@lwfinger.net \
--cc=cristianenavescardoso09@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=florian.c.schilhabel@googlemail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=outreachy-kernel@googlegroups.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
all inboxes | Powered by JetHome®