[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cfa9fc16-b403-d9b0-ab6c-2f28dbd0b5dc@st.com>
Date: Tue, 31 Jan 2017 11:11:15 +0100
From: Giuseppe CAVALLARO <peppe.cavallaro@...com>
To: Corentin Labbe <clabbe.montjoie@...il.com>,
<alexandre.torgue@...com>, <netdev@...r.kernel.org>
CC: <davem@...emloft.net>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 16/17] net: stmmac: remove unused variable in
sysfs_display_ring
On 1/31/2017 10:11 AM, Corentin Labbe wrote:
> The u64 x variable in sysfs_display_ring is unused.
> This patch remove it.
>
> Signed-off-by: Corentin Labbe <clabbe.montjoie@...il.com>
well spot
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@...com>
> ---
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> index b494bc2..f0ce780 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> @@ -2890,9 +2890,7 @@ static void sysfs_display_ring(void *head, int size, int extend_desc,
> struct dma_desc *p = (struct dma_desc *)head;
>
> for (i = 0; i < size; i++) {
> - u64 x;
> if (extend_desc) {
> - x = *(u64 *) ep;
> seq_printf(seq, "%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n",
> i, (unsigned int)virt_to_phys(ep),
> le32_to_cpu(ep->basic.des0),
> @@ -2901,7 +2899,6 @@ static void sysfs_display_ring(void *head, int size, int extend_desc,
> le32_to_cpu(ep->basic.des3));
> ep++;
> } else {
> - x = *(u64 *) p;
> seq_printf(seq, "%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n",
> i, (unsigned int)virt_to_phys(ep),
> le32_to_cpu(p->des0), le32_to_cpu(p->des1),
>
Powered by blists - more mailing lists