diff options
author | Wambui Karuga <wambui.karugax@gmail.com> | 2019-10-15 11:47:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-15 19:35:01 +0300 |
commit | d9cceb24b407d57229d45853f9c399623e768d39 (patch) | |
tree | 8b650c56763d58819e9d29abfc6f3313fb55b272 /drivers/staging/octeon/ethernet-tx.c | |
parent | f57ff0a9b806ebce507e699e4a4ee2c6f06178fc (diff) | |
download | linux-d9cceb24b407d57229d45853f9c399623e768d39.tar.xz |
staging: octeon: fix restricted __be16 degrades to integer
Add cast to fix the following sparse warning:
warning: restricted __be16 degrades to integer
Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Link: https://lore.kernel.org/r/20191015084731.8514-1-wambui.karugax@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon/ethernet-tx.c')
-rw-r--r-- | drivers/staging/octeon/ethernet-tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c index 5114273826ec..b334cf89794e 100644 --- a/drivers/staging/octeon/ethernet-tx.c +++ b/drivers/staging/octeon/ethernet-tx.c @@ -598,7 +598,7 @@ int cvm_oct_xmit_pow(struct sk_buff *skb, struct net_device *dev) #endif work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || (ip_hdr(skb)->frag_off == - 1 << 14)); + cpu_to_be16(1 << 14))); #if 0 /* Assume Linux is sending a good packet */ work->word2.s.IP_exc = 0; |