Skip to content

Commit 376534a

Browse files
Jiri Bencdavem330
authored andcommitted
ip_tunnels: use offsetofend
Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6b8847c commit 376534a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎include/net/ip_tunnels.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
#define IPTUNNEL_ERR_TIMEO (30*HZ)
2424

2525
/* Used to memset ip_tunnel padding. */
26-
#define IP_TUNNEL_KEY_SIZE \
27-
(offsetof(struct ip_tunnel_key, tp_dst) + \
28-
FIELD_SIZEOF(struct ip_tunnel_key, tp_dst))
26+
#define IP_TUNNEL_KEY_SIZE offsetofend(struct ip_tunnel_key, tp_dst)
2927

3028
struct ip_tunnel_key {
3129
__be64 tun_id;

0 commit comments

Comments
 (0)