net: axienet: Clean up DMA start/stop and error handling
authorRobert Hancock <robert.hancock@calian.com>
Sat, 5 Mar 2022 02:24:39 +0000 (20:24 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2022 11:12:08 +0000 (11:12 +0000)
commit84b9ccc0749a7036bcaf707f02273dcbd4756fbf
tree7c7e073949d27dff740ab780d0b1638a89f2702f
parent17882fd4256721451457ee57532bbae0cd5cacfe
net: axienet: Clean up DMA start/stop and error handling

Simplify the DMA error handling process, and remove some duplicated code
between the DMA error handling and the stop function.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c