net: stmmac: Use bfsize1 in ndesc_init_rx_desc
authorYueHaibing <yuehaibing@huawei.com>
Wed, 17 Apr 2019 01:49:39 +0000 (09:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Apr 2019 06:20:25 +0000 (23:20 -0700)
commitf87db4dbd52f2f8a170a2b51cb0926221ca7c9e2
tree923f56a381c263d8b8082f9712b50ba229f8ec41
parent19fad20d15a6494f47f85d869f00b11343ee5c78
net: stmmac: Use bfsize1 in ndesc_init_rx_desc

gcc warn this:

drivers/net/ethernet/stmicro/stmmac/norm_desc.c: In function ndesc_init_rx_desc:
drivers/net/ethernet/stmicro/stmmac/norm_desc.c:138:6: warning: variable 'bfsize1' set but not used [-Wunused-but-set-variable]

Like enh_desc_init_rx_desc, we should use bfsize1
in ndesc_init_rx_desc to calculate 'p->des1'

Fixes: 583e63614149 ("net: stmmac: use correct DMA buffer size in the RX descriptor")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/norm_desc.c