aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2020-01-03 11:51:00 +0800
committerDavid S. Miller <davem@davemloft.net>2020-01-03 12:24:34 -0800
commitb39c78b2aa09cae05f3a48c11f67b3add0d604de (patch)
tree0fff1acc6845969a2aeebb2771752d6c1260a48d /include
parentethtool: remove set but not used variable 'lsettings' (diff)
downloadlinux-dev-b39c78b2aa09cae05f3a48c11f67b3add0d604de.tar.xz
linux-dev-b39c78b2aa09cae05f3a48c11f67b3add0d604de.zip
net: remove the check argument from __skb_gro_checksum_convert
The argument is always ignored, so remove it. Signed-off-by: Li RongQing <lirongqing@baidu.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 2fd19fb8826d..2741aa35bec6 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2826,16 +2826,16 @@ static inline bool __skb_gro_checksum_convert_check(struct sk_buff *skb)
}
static inline void __skb_gro_checksum_convert(struct sk_buff *skb,
- __sum16 check, __wsum pseudo)
+ __wsum pseudo)
{
NAPI_GRO_CB(skb)->csum = ~pseudo;
NAPI_GRO_CB(skb)->csum_valid = 1;
}
-#define skb_gro_checksum_try_convert(skb, proto, check, compute_pseudo) \
+#define skb_gro_checksum_try_convert(skb, proto, compute_pseudo) \
do { \
if (__skb_gro_checksum_convert_check(skb)) \
- __skb_gro_checksum_convert(skb, check, \
+ __skb_gro_checksum_convert(skb, \
compute_pseudo(skb, proto)); \
} while (0)