diff options
| author | Florian Fainelli <[email protected]> | 2018-04-02 22:58:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-04-04 15:07:21 +0000 |
| commit | c0eb05585d4184596453622b5abba7d13dd20667 (patch) | |
| tree | 60150b002c683c5c21d1001dce04f99d7cfdfffc /net/unix/af_unix.c | |
| parent | net: bcmgenet: Fix sparse warnings in bcmgenet_put_tx_csum() (diff) | |
| download | kernel-c0eb05585d4184596453622b5abba7d13dd20667.tar.gz kernel-c0eb05585d4184596453622b5abba7d13dd20667.zip | |
net: systemport: Fix sparse warnings in bcm_sysport_insert_tsb()
skb->protocol is a __be16 which we would be calling htons() against,
while this is not wrong per-se as it correctly results in swapping the
value on LE hosts, this still upsets sparse. Adopt a similar pattern to
what other drivers do and just assign ip_ver to skb->protocol, and then
use htons() against the different constants such that the compiler can
resolve the values at build time.
Fixes: 80105befdb4b ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
