summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon/hip04_eth.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-07-22 23:01:15 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-23 04:28:12 +0300
commitfcd4e60885af969d190999a6c42454c5578d52f1 (patch)
tree5c1d8c332a3e8dda1f071dbaf4e0dd00e2b79917 /drivers/net/ethernet/hisilicon/hip04_eth.c
parentd1854d509d61d36af44f2130423bff8836e1592e (diff)
downloadlinux-fcd4e60885af969d190999a6c42454c5578d52f1.tar.xz
r8169: improve rtl_rx
This patch improves few aspects of rtl_rx, no functional change intended. 1. inline rtl8169_try_rx_copy 2. make pkt_size unsigned 3. use constant ETH_FCS_LEN instead of value 4 4. We just created the skb, so we don't need the checks in skb_put. Also we don't need the return value of skb_put. Set skb->tail and skb->len directly. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hip04_eth.c')
0 files changed, 0 insertions, 0 deletions