net: gemini: remove unnecessary assert
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 17 Apr 2019 20:51:58 +0000 (13:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2019 00:06:15 +0000 (17:06 -0700)
The driver does not advertize NETIF_F_FRAGLIST, the stack can't
pass skbs with frags lists to the xmit function.

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>
drivers/net/ethernet/cortina/gemini.c

index 949103db8a8ad75afab234f879acddc7e8c4a515..9003eb6716cd8621840bbbc75e0ba0540dab7e0a 100644 (file)
@@ -1235,8 +1235,6 @@ static int gmac_start_xmit(struct sk_buff *skb, struct net_device *netdev)
        int txq_num, nfrags;
        union dma_rwptr rw;
 
-       SKB_FRAG_ASSERT(skb);
-
        if (skb->len >= 0x10000)
                goto out_drop_free;