This patch removes unnessary headroom check. We will check that value while register net device that we have such headroom for placing address information at the headroom of skb. Signed-off-by: Alexander Aring <aar@xxxxxxxxxxxxxx> --- net/ieee802154/6lowpan/tx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ieee802154/6lowpan/tx.c b/net/ieee802154/6lowpan/tx.c index dbb476d..a7a1b12 100644 --- a/net/ieee802154/6lowpan/tx.c +++ b/net/ieee802154/6lowpan/tx.c @@ -26,7 +26,6 @@ struct lowpan_addr_info { static inline struct lowpan_addr_info *lowpan_skb_priv(const struct sk_buff *skb) { - WARN_ON_ONCE(skb_headroom(skb) < sizeof(struct lowpan_addr_info)); return (struct lowpan_addr_info *)(skb->data - sizeof(struct lowpan_addr_info)); } -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html