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)
commit3899c928bccc5068405cd0e9a3a8fea67b097e9e
treec170b917ed5c8068df36eac0afa84ee8b867c3a9
parent34ac17ecbf575eb079094d44f1bd30c66897aa21
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