History

net: skb: remove unused asserts

We are discouraging the use of BUG() these days, remove the unused ASSERT macros from skbuff.h.

Jakub Kicinski committed 7 years ago

Commit a06eaaf1 parent a115d511 file · +0 −2Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/skbuff.h+0−2
@@ -2100,8 +2100,6 @@ void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, · 2099 unmodified lines
2100void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size,2100void 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_OFFSET2105#ifdef NET_SKBUFF_DATA_USES_OFFSET

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t