Re: [PATCH] net: aquantia: remove function aq_ring_tx_deinit

2017-02-20 Thread David Miller
From: Lino Sanfilippo Date: Sat, 18 Feb 2017 12:27:12 +0100 > 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

Re: [PATCH] net: aquantia: remove function aq_ring_tx_deinit

2017-02-20 Thread Pavel Belous
On 18.02.2017 14:27, Lino Sanfilippo wrote: 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

[PATCH] net: aquantia: remove function aq_ring_tx_deinit

2017-02-18 Thread Lino Sanfilippo
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