From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Laura Garcia Liebana <nevola@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v2 2/7] staging: netlogic: Remove blank spaces after a cast
Date: Wed, 17 Feb 2016 11:02:41 +0530 [thread overview]
Message-ID: <20160217053240.GC4073@sudip-pc> (raw)
In-Reply-To: <d3ee83a0b5ee4adb0b7ba37995c1809284532197.1455661648.git.nevola@gmail.com>
On Tue, Feb 16, 2016 at 11:36:31PM +0100, Laura Garcia Liebana wrote:
> Remove uneeded blank spaces after a cast. Checkpatch found these issues.
>
> Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
> ---
> v2: Include parentheses for pointers, as Julia suggested
>
> drivers/staging/netlogic/xlr_net.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c
> index 59fbaba..b89e3cb 100644
> --- a/drivers/staging/netlogic/xlr_net.c
> +++ b/drivers/staging/netlogic/xlr_net.c
> @@ -130,13 +130,13 @@ static void xlr_net_fmn_handler(int bkt, int src_stnid, int size, int code,
> struct xlr_net_priv *priv;
> u32 port, length;
> unsigned char *addr;
> - struct xlr_adapter *adapter = (struct xlr_adapter *) arg;
> + struct xlr_adapter *adapter = (struct xlr_adapter *)arg;
>
> length = (msg->msg0 >> 40) & 0x3fff;
> if (length == 0) {
> addr = bus_to_virt(msg->msg0 & 0xffffffffffULL);
> addr = addr - MAC_SKB_BACK_PTR_SIZE;
> - skb = (struct sk_buff *) *(unsigned long *)addr;
> + skb = (struct sk_buff *)(*)(unsigned long *)addr;
I think a better choice might have been:
skb = (struct sk_buff *)(*(unsigned long *)addr);
regards
sudip
next prev parent reply other threads:[~2016-02-17 5:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 22:35 [PATCH v2 0/7] staging: netlogic: Fix several checkpatch issues Laura Garcia Liebana
2016-02-16 22:35 ` [PATCH v2 1/7] staging: netlogic: Fix several parentheses alignments Laura Garcia Liebana
2016-02-16 22:36 ` [PATCH v2 2/7] staging: netlogic: Remove blank spaces after a cast Laura Garcia Liebana
2016-02-17 5:32 ` Sudip Mukherjee [this message]
2016-02-17 11:30 ` [Outreachy kernel] " Julia Lawall
2016-02-16 22:37 ` [PATCH v2 3/7] staging: netlogic: Fix multiple assignments Laura Garcia Liebana
2016-02-16 22:37 ` [PATCH v2 4/7] staging: netlogic: Fix CamelCase for constants Laura Garcia Liebana
2016-02-16 22:38 ` [PATCH v2 5/7] staging: netlogic: Fix comparison to NULL Laura Garcia Liebana
2016-02-16 22:38 ` [PATCH v2 6/7] staging: netlogic: Insert spaces around operator Laura Garcia Liebana
2016-02-16 22:39 ` [PATCH v2 7/7] staging: netlogic: Fix indent for conditional statement Laura Garcia Liebana
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=20160217053240.GC4073@sudip-pc \
--to=sudipm.mukherjee@gmail.com \
--cc=nevola@gmail.com \
--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 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.