]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: skb: remove unused asserts
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 17 Apr 2019 20:51:59 +0000 (13:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2019 00:06:15 +0000 (17:06 -0700)
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>
include/linux/skbuff.h

index a06275a618f0c4573a92eba1db7d348868f6d8a6..e4ee92089dd6b85df4031adc29bee8ab1d84eff4 100644 (file)
@@ -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