diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-19 07:23:33 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-19 07:23:35 +0200 |
commit | 5a66288569a1960d34312d8a30c93da48bee95f2 (patch) | |
tree | a263cfacf27de2800398b799e112732614990aad /net | |
parent | 1094017c068188226dcbedff8d392d22cb14b84a (diff) | |
download | barebox-5a66288569a1960d34312d8a30c93da48bee95f2.tar.gz barebox-5a66288569a1960d34312d8a30c93da48bee95f2.tar.xz |
net: eth: rename __eth_rx()
__eth_rx() not only receives packets but also checks the carrier. In the
next steps it will also send the queued packets, so rename the function
to eth_do_work(). Also return void as the only caller can't do anything
with the return value.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -224,15 +224,15 @@ int eth_send(struct eth_device *edev, void *packet, int length) return edev->send(edev, packet, length); } -static int __eth_rx(struct eth_device *edev) +static void eth_do_work(struct eth_device *edev) { int ret; ret = eth_carrier_check(edev, 0); if (ret) - return ret; + return; - return edev->recv(edev); + edev->recv(edev); } int eth_rx(void) @@ -241,7 +241,7 @@ int eth_rx(void) for_each_netdev(edev) { if (edev->active) - __eth_rx(edev); + eth_do_work(edev); } return 0; |