]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac_lib: remove unnecessary checks in dwmac_dma_reset()
authorDejin Zheng <zhengdejin5@gmail.com>
Thu, 19 Mar 2020 13:16:38 +0000 (21:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:05:27 +0000 (21:05 -0700)
commitfd2e13c4e2b2a25cd4cfc2bf414f7c83f50c89bc
treeae159d728478ba6e414fe00ee3bff02f7704241b
parentb42cf55949de874cc98705043c30c361d5b91027
net: stmmac: dwmac_lib: remove unnecessary checks in dwmac_dma_reset()

it will check the return value of dwmac_dma_reset() in the
stmmac_init_dma_engine() function and report an error if the
return value is not zero. so don't need check here.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c