]> git.baikalelectronics.ru Git - kernel.git/commit
sun4i-emac.c: remove unnecessary branch
authorConley Lee <conleylee@foxmail.com>
Tue, 14 Dec 2021 09:11:06 +0000 (17:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Dec 2021 10:29:03 +0000 (10:29 +0000)
commit7aa5d3931ec276dd78b25af1d91cef4c0bfc5129
treec170b917ed5c8068df36eac0afa84ee8b867c3a9
parent3260c2453a5b3838a5fd8574d06dcef556562f82
sun4i-emac.c: remove unnecessary branch

According to the current implementation of emac_rx, every arrived packet
will be processed in the while loop. So, there is no remain packet last
time. The skb_last field and this branch for dealing with it is
unnecessary.

Signed-off-by: Conley Lee <conleylee@foxmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c