net: bcmgenet: cleanup for bcmgenet_xmit_frag()
authorPetri Gynther <pgynther@google.com>
Tue, 5 Apr 2016 21:00:00 +0000 (14:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 23:33:51 +0000 (19:33 -0400)
commit824ba603573d910e32df75fe6a5e7d7ec2a0a6a7
treefc2eb5912c7d29e663654d88e7164c091b3c8f75
parentf5a9ec20b3b2adf03a0b01902cda913b05abd382
net: bcmgenet: cleanup for bcmgenet_xmit_frag()

Add frag_size = skb_frag_size(frag) and use it when needed.

Signed-off-by: Petri Gynther <pgynther@google.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c