aboutgitcodebugslistschat
path: root/tap.h
diff options
context:
space:
mode:
Diffstat (limited to 'tap.h')
-rw-r--r--tap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tap.h b/tap.h
index ee22a9d..cc780d1 100644
--- a/tap.h
+++ b/tap.h
@@ -65,8 +65,7 @@ static inline struct iovec tap_hdr_iov(const struct ctx *c,
*/
static inline void tap_hdr_update(struct tap_hdr *thdr, size_t l2len)
{
- if (thdr)
- thdr->vnet_len = htonl(l2len);
+ thdr->vnet_len = htonl(l2len);
}
unsigned long tap_l2_max_len(const struct ctx *c);