From: Yunjian Wang Date: Wed, 25 Mar 2020 03:04:56 +0000 (+0800) Subject: net/tap: remove unused assert X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=252566dab58820ccdae67865646160c07af18e76;p=dpdk.git net/tap: remove unused assert The assert checks is not necessary, the gso_ctx is always non-NULL. Fixes: 050316a88313 ("net/tap: support TSO (TCP Segment Offload)") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 2c9fb76b63..4b2168e440 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -19,7 +19,6 @@ #include #include -#include #include #include #include @@ -671,8 +670,6 @@ pmd_tx_burst(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) if (tso) { struct rte_gso_ctx *gso_ctx = &txq->gso_ctx; - assert(gso_ctx != NULL); - /* TCP segmentation implies TCP checksum offload */ mbuf_in->ol_flags |= PKT_TX_TCP_CKSUM; diff --git a/drivers/net/tap/tap_intr.c b/drivers/net/tap/tap_intr.c index 7af0010e37..58f36d3ccb 100644 --- a/drivers/net/tap/tap_intr.c +++ b/drivers/net/tap/tap_intr.c @@ -7,7 +7,6 @@ * Interrupts handling for tap driver. */ -#include #include #include #include