net: systemport: Utilize skb_put_padto()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 4 Jan 2017 00:34:48 +0000 (16:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 18:33:28 +0000 (13:33 -0500)
commitbb7da333d0a9f3bddc08f84187b7579a3f68fd24
treed6d420e50df49853a92e62ececb42e484e07ad8d
parentcd7aeb1f9706b665ad8659df8ff036e7bc0097f4
net: systemport: Utilize skb_put_padto()

Since we need to pad our packets, utilize skb_put_padto() which
increases skb->len by how much we need to pad, allowing us to eliminate
the test on skb->len right below.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c