[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140318200644.GA3422@kroah.com>
Date: Tue, 18 Mar 2014 13:06:44 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Joel Pelaez Jorge <joelpelaez@...il.com>
Cc: Joe Perches <joe@...ches.com>,
Rashika Kheria <rashika.kheria@...il.com>,
Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com>,
devel@...verdev.osuosl.org,
Wei Yongjun <yongjun_wei@...ndmicro.com.cn>,
Jingoo Han <jg1.han@...sung.com>, linux-kernel@...r.kernel.org,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH] staging: slicoss: Fix prefer ether_addr_copy over memcpy
On Mon, Mar 17, 2014 at 09:17:35PM -0600, Joel Pelaez Jorge wrote:
> This patch fixes the following checkpatch.pl issues caused by the new
> function: ether_addr_copy
>
> Signed-off-by: Joel Pelaez Jorge <joelpelaez@...il.com>
> ---
> diff --git a/drivers/staging/slicoss/slicoss.c
> b/drivers/staging/slicoss/slicoss.c
> index 12aafe3..4ff39aa 100644
> --- a/drivers/staging/slicoss/slicoss.c
> +++ b/drivers/staging/slicoss/slicoss.c
> @@ -2313,7 +2313,7 @@ static int slic_mcast_add_list(struct adapter
> *adapter, char *address)
> if (mcaddr == NULL)
> return 1;
>
> - memcpy(mcaddr->address, address, ETH_ALEN);
> + ether_addr_copy(mcaddr->address, address);
>
> mcaddr->next = adapter->mcastaddrs;
> adapter->mcastaddrs = mcaddr;
The patch is line-wrapped, and tabs converted to spaces, making it
impossible to apply the patch.
Please fix your email client and try again.
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists