net: enetc: squash clear_cbdr and free_cbdr into teardown_cbdr
authorVladimir Oltean <olteanv@gmail.com>
Wed, 10 Mar 2021 12:03:44 +0000 (14:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2021 21:14:15 +0000 (13:14 -0800)
commit0bfde022b345763df70fdc73bcb5ab8943589487
tree4d42b999b59fb990b905d3015c5180f45e568acd
parent27f9025d49416e35bd7f1cedc9edd0388612501f
net: enetc: squash clear_cbdr and free_cbdr into teardown_cbdr

All call sites call enetc_clear_cbdr and enetc_free_cbdr one after
another, so let's combine the two functions into a single method named
enetc_teardown_cbdr which does both, and in the same order.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc.c
drivers/net/ethernet/freescale/enetc/enetc.h
drivers/net/ethernet/freescale/enetc/enetc_cbdr.c
drivers/net/ethernet/freescale/enetc/enetc_pf.c