diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-04-17 23:51:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-19 03:06:15 +0300 |
commit | a06eaaf7913cab9dd6cb8ece4f78cfd7a802872a (patch) | |
tree | 18feeb128c4ec168d1a3c3c44f784e6f6a31bcdf /include/linux/skbuff.h | |
parent | a115d51aae7509ca3b18d9b627a356dc8da66f10 (diff) | |
download | linux-a06eaaf7913cab9dd6cb8ece4f78cfd7a802872a.tar.xz |
net: skb: remove unused asserts
We are discouraging the use of BUG() these days, remove the
unused ASSERT macros from skbuff.h.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index a06275a618f0..e4ee92089dd6 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -2100,8 +2100,6 @@ void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size, unsigned int truesize); -#define SKB_PAGE_ASSERT(skb) BUG_ON(skb_shinfo(skb)->nr_frags) -#define SKB_FRAG_ASSERT(skb) BUG_ON(skb_has_frag_list(skb)) #define SKB_LINEAR_ASSERT(skb) BUG_ON(skb_is_nonlinear(skb)) #ifdef NET_SKBUFF_DATA_USES_OFFSET |