diff options
author | David S. Miller <davem@davemloft.net> | 2018-04-04 11:07:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-04 11:07:21 -0400 |
commit | 51508179ecc6dda46c90c7d2de4971112eb57306 (patch) | |
tree | 60150b002c683c5c21d1001dce04f99d7cfdfffc /net/unix | |
parent | b41d7cfef5696b4fb17a122d16e2fbf2a3bc0d9e (diff) | |
parent | c0eb05585d4184596453622b5abba7d13dd20667 (diff) |
Merge branch 'net-Broadcom-drivers-sparse-fixes'
Florian Fainelli says:
====================
net: Broadcom drivers sparse fixes
This patch series fixes the same warning reported by sparse in bcmsysport and
bcmgenet in the code that deals with inserting the TX checksum pointers:
drivers/net/ethernet/broadcom/bcmsysport.c:1155:26: warning: cast from restricted __be16
drivers/net/ethernet/broadcom/bcmsysport.c:1155:26: warning: incorrect type in argument 1 (different base types)
drivers/net/ethernet/broadcom/bcmsysport.c:1155:26: expected unsigned short [unsigned] [usertype] val
drivers/net/ethernet/broadcom/bcmsysport.c:1155:26: got restricted __be16 [usertype] protocol
This patch fixes both issues by using the same construct and not swapping
skb->protocol but instead the values we are checking against.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions