Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1258379

Re: [PATCH 2/2] drivers:staging:gdm724x Fix Alignment should match open parenthesis

From Dan Carpenter <dan.carpenter@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] drivers:staging:gdm724x Fix Alignment should match open parenthesis
Date 2015-10-28 20:00 +0100
Message-ID <qoE70-6pV-33@gated-at.bofh.it> (permalink)
References <qoDui-6b4-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Oct 28, 2015 at 07:13:24PM +0100, Bogicevic Sasa wrote:
> This fixes all Alignment should match open parenthesis
> messages from checkpatch.pl
> 
> Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
> ---
>  drivers/staging/gdm724x/gdm_lte.c | 69 +++++++++++++++++++++++++--------------
>  1 file changed, 45 insertions(+), 24 deletions(-)
> 
> diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c
> index a8d2cff..a28e0d1 100644
> --- a/drivers/staging/gdm724x/gdm_lte.c
> +++ b/drivers/staging/gdm724x/gdm_lte.c
> @@ -161,12 +161,15 @@ static int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type)
>  		return -ENOMEM;
>  	skb_reserve(skb_out, NET_IP_ALIGN);
>  
> -	memcpy(skb_put(skb_out, mac_header_len), mac_header_data,
> +	memcpy(
> +		skb_put(skb_out, mac_header_len), mac_header_data,
>  		mac_header_len);

No.  This isn't the right way.  Look at other code to see how it's done.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] drivers:staging:gdm724x Fix Alignment should match open parenthesis Bogicevic Sasa <brutallesale@gmail.com> - 2015-10-28 19:20 +0100
  Re: [PATCH 2/2] drivers:staging:gdm724x Fix Alignment should match  open parenthesis Joe Perches <joe@perches.com> - 2015-10-28 19:30 +0100
  Re: [PATCH 2/2] drivers:staging:gdm724x Fix Alignment should match  open parenthesis Dan Carpenter <dan.carpenter@oracle.com> - 2015-10-28 20:00 +0100

csiph-web