Re: [PATCH] net: macb: remove redundant assignment to variable work_done

From: Alexander Dahl
Date: Wed Nov 01 2017 - 05:18:18 EST


Hei hei,

Am Dienstag, 31. Oktober 2017, 14:23:24 CET schrieb Colin King:
> --- a/drivers/net/ethernet/cadence/macb_main.c
> +++ b/drivers/net/ethernet/cadence/macb_main.c
> @@ -1218,8 +1218,6 @@ static int macb_poll(struct napi_struct *napi, int
> budget) status = macb_readl(bp, RSR);
> macb_writel(bp, RSR, status);
>
> - work_done = 0;
> -
> netdev_vdbg(bp->dev, "poll: status = %08lx, budget = %d\n",
> (unsigned long)status, budget);

Looks reasonable, when looking at the surrounding code.

Applied this on top of 4.14-rc7 and tested it on an at91sam9g20 based
platform.

Tested-by: Alexander Dahl <ada@xxxxxxxxxxx>

Greets
Alex