We are discouraging the use of BUG() these days, remove the unused ASSERT macros from skbuff.h.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -2100,8 +2100,6 @@ void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, · 2099 unmodified lines | |||
| 2100 | void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size, | 2100 | void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size, |
| 2101 | unsigned int truesize); | 2101 | unsigned int truesize); |
| 2102 | 2102 | ||
| 2103 | #define SKB_PAGE_ASSERT(skb) BUG_ON(skb_shinfo(skb)->nr_frags) | ||
| 2104 | #define SKB_FRAG_ASSERT(skb) BUG_ON(skb_has_frag_list(skb)) | ||
| 2105 | #define SKB_LINEAR_ASSERT(skb) BUG_ON(skb_is_nonlinear(skb)) | 2103 | #define SKB_LINEAR_ASSERT(skb) BUG_ON(skb_is_nonlinear(skb)) |
| 2106 | 2104 | ||
| 2107 | #ifdef NET_SKBUFF_DATA_USES_OFFSET | 2105 | #ifdef NET_SKBUFF_DATA_USES_OFFSET |