net: aquantia: remove function aq_ring_tx_deinit
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Sat, 18 Feb 2017 11:27:12 +0000 (12:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 15:23:41 +0000 (10:23 -0500)
commiteb36bedf28be6d986bdbcfa375bab08ffa45efd8
tree3c9a78e2246bea7e0e242e2d57bf9127c8b3d208
parent90a6c997bd8bb836809eda5efb6406d8c58c0924
net: aquantia: remove function aq_ring_tx_deinit

Both functions aq_ring_rx_deinit() and aq_ring_tx_clean() are almost
identical aside from an additional check in the latter.
Move that check from the function into its caller and replace
aq_ring_rx_deinit() with aq_ring_rx_deinit().

By doing this also adjust the functions return value from int to void
since it can never fail.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Tested-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
drivers/net/ethernet/aquantia/atlantic/aq_ring.h
drivers/net/ethernet/aquantia/atlantic/aq_vec.c