]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sh_eth: merge sh_eth_free_dma_buffer() into sh_eth_ring_free()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 3 Nov 2015 21:55:13 +0000 (00:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Nov 2015 01:59:07 +0000 (20:59 -0500)
commit8e03a5e75c517de19c26a46147b0dc28096e55ef
treebb687f1e9752abc18c940e2394519dd3b1542ef6
parent91d80683fc1828141e87babbd01f40e408864914
sh_eth: merge sh_eth_free_dma_buffer() into sh_eth_ring_free()

While the ring allocation is done by a single function, sh_eth_ring_init(),
the ring deallocation was split into two functions (almost always called
one after the other) for no good reason. Merge  sh_eth_free_dma_buffer()
into sh_eth_ring_free() which allows us  to save space not only on the
direct calls  of the former function but also on the sh_eth_ring_init()'s
simplified error path...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c