]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7000ac5365946d5f83c40d67033065fdef90357
tree3c9a78e2246bea7e0e242e2d57bf9127c8b3d208
parent82eedbb651cfab4602ba76a33c0dff3eea9bb0db
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