net: mediatek: mtk_cal_txd_req() returns bad value
authorJohn Crispin <blogic@openwrt.org>
Thu, 7 Apr 2016 22:54:05 +0000 (00:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2016 02:41:32 +0000 (22:41 -0400)
commitbeeb4ca466fa1c399d69e34c30ddf04e0b7cbefd
tree94e60756f4765bf537c3776654b86e960aeebc75
parent82500aa01ad12eff41a9a68ad01f1d40db8921f9
net: mediatek: mtk_cal_txd_req() returns bad value

The code used to also support the PDMA engine, which had 2 packet pointers
per descriptor. Because of this we had to divide the result by 2 and round
it up. This is no longer needed as the code only supports QDMA.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c